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
|
Name: trousers
|
||||||
Version: 0.3.14
|
Version: 0.3.14
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The open-source TCG Software Stack
|
Summary: The open-source TCG Software Stack
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: http://trousers.sourceforge.net
|
Url: http://trousers.sourceforge.net
|
||||||
@ -52,6 +52,11 @@ mkdir -p %{buildroot}%{_unitdir}
|
|||||||
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
||||||
|
|
||||||
%pre
|
%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
|
%post
|
||||||
%systemd_post tcsd.service
|
%systemd_post tcsd.service
|
||||||
@ -87,6 +92,9 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.8-2
|
||||||
- Modify requires
|
- Modify requires
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user