From 594901baea16799a152408793a81711e16a081fd Mon Sep 17 00:00:00 2001 From: guoxiaoqi Date: Sat, 21 Mar 2020 20:07:53 +0800 Subject: [PATCH] Add tss account used by the trousers package to sandbox the tcsd daemon --- trousers.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/trousers.spec b/trousers.spec index b31cc66..1fb5c3a 100644 --- a/trousers.spec +++ b/trousers.spec @@ -1,6 +1,6 @@ Name: trousers Version: 0.3.14 -Release: 2 +Release: 3 Summary: The open-source TCG Software Stack License: BSD Url: http://trousers.sourceforge.net @@ -52,6 +52,11 @@ mkdir -p %{buildroot}%{_unitdir} install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/ %pre +getent group tss > /dev/null || groupadd -g 59 -r tss +getent passwd tss > /dev/null || \ +useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin \ +-c "Account used by the trousers package to sandbox the tcsd daemon" tss +exit 0 %post %systemd_post tcsd.service @@ -87,6 +92,9 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/ %changelog +* Sat Mar 21 2020 openEuler Buildteam - 1.9.8-3 +- Add tss account used by the trousers package to sandbox the tcsd daemon + * Sat Dec 21 2019 openEuler Buildteam - 1.9.8-2 - Modify requires