From 199342982e1fae23a72f6de5b8a3f1ba23127821913f9d8152d0aee74aea4d79 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Fri, 31 Jan 2020 13:32:43 +0000 Subject: [PATCH] Accepting request 769046 from home:michals - Add tss user for TPM tools (boo#1162360). OBS-URL: https://build.opensuse.org/request/show/769046 OBS-URL: https://build.opensuse.org/package/show/Base:System/system-users?expand=0&rev=40 --- system-user-tss.conf | 3 +++ system-users.changes | 5 +++++ system-users.spec | 20 +++++++++++++++++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 system-user-tss.conf diff --git a/system-user-tss.conf b/system-user-tss.conf new file mode 100644 index 0000000..196ad1b --- /dev/null +++ b/system-user-tss.conf @@ -0,0 +1,3 @@ +# Type Name ID GECOS [HOME] +g tss 98 "TPM device access" +u tss 98 "TSS daemon" /var/lib/tpm diff --git a/system-users.changes b/system-users.changes index 00d9986..dd3b9d5 100644 --- a/system-users.changes +++ b/system-users.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 31 11:47:46 UTC 2020 - Michal Suchanek + +- Add tss user for TPM tools (boo#1162360). + ------------------------------------------------------------------- Tue Aug 13 07:07:19 UTC 2019 - Michal Suchanek diff --git a/system-users.spec b/system-users.spec index 68dc856..f793c6b 100644 --- a/system-users.spec +++ b/system-users.spec @@ -1,7 +1,7 @@ # # spec file for package system-users # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,6 +39,7 @@ Source15: system-user-nobody.conf Source16: system-user-upsd.conf Source17: system-user-uuidd.conf Source19: system-user-tftp.conf +Source20: system-user-tss.conf BuildRequires: sysuser-shadow BuildRequires: sysuser-tools BuildArch: noarch @@ -197,6 +198,14 @@ Group: System/Fhs %description -n system-user-tftp This package provides the system account and group 'tftp'. +%package -n system-user-tss +Summary: System user and group tss +Group: System/Fhs +%{sysusers_requires} + +%description -n system-user-tss +This package provides the system account and group 'tss'. + %prep %setup -q -c -T @@ -218,6 +227,7 @@ This package provides the system account and group 'tftp'. %sysusers_generate_pre %{SOURCE16} upsd %sysusers_generate_pre %{SOURCE17} uuidd %sysusers_generate_pre %{SOURCE19} tftp +%sysusers_generate_pre %{SOURCE20} tss %install mkdir -p %{buildroot}%{_sysusersdir} @@ -231,6 +241,7 @@ mkdir -p %{buildroot}%{_localstatedir}/run/uuidd mkdir -p %{buildroot}/srv/ftp mkdir -p %{buildroot}%{_localstatedir}/lib/nobody mkdir -p %{buildroot}/srv/tftpboot +mkdir -p %{buildroot}/var/lib/tpm install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf @@ -248,6 +259,7 @@ install -m 644 %{SOURCE15} %{buildroot}%{_sysusersdir}/system-user-nobody.conf install -m 644 %{SOURCE16} %{buildroot}%{_sysusersdir}/system-user-upsd.conf install -m 644 %{SOURCE17} %{buildroot}%{_sysusersdir}/system-user-uuidd.conf install -m 644 %{SOURCE19} %{buildroot}%{_sysusersdir}/system-user-tftp.conf +install -m 644 %{SOURCE20} %{buildroot}%{_sysusersdir}/system-user-tss.conf %pre -n system-user-uucp -f uucp.pre %pre -n system-user-games -f games.pre @@ -269,6 +281,7 @@ install -m 644 %{SOURCE19} %{buildroot}%{_sysusersdir}/system-user-tftp.conf %pre -n system-user-upsd -f upsd.pre %pre -n system-user-uuidd -f uuidd.pre %pre -n system-user-tftp -f tftp.pre +%pre -n system-user-tss -f tss.pre %files -n system-user-uucp %defattr(-,root,root) @@ -347,4 +360,9 @@ install -m 644 %{SOURCE19} %{buildroot}%{_sysusersdir}/system-user-tftp.conf %dir %attr(0755,tftp,tftp) /srv/tftpboot %{_sysusersdir}/system-user-tftp.conf +%files -n system-user-tss +%defattr(-,root,root) +%dir %attr(0755,root,root) /var/lib/tpm +%{_sysusersdir}/system-user-tss.conf + %changelog