diff --git a/trousers.spec b/trousers.spec index b31cc66e43555554e8db4a5ab0da14ae92125907..1fb5c3a0a6307021b79a45b3141ba4123d941dea 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