Add tss account used by the trousers package to sandbox the tcsd daemon

This commit is contained in:
guoxiaoqi 2020-03-21 20:07:53 +08:00
parent 0f0ab32589
commit 594901baea

View File

@ -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 <buildteam@openeuler.org> - 1.9.8-3
- Add tss account used by the trousers package to sandbox the tcsd daemon
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.8-2
- Modify requires