Add tss account used by the trousers package to sandbox the tcsd daemon
This commit is contained in:
parent
0f0ab32589
commit
594901baea
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user