diff --git a/swtpm.changes b/swtpm.changes index 0a8dadf..09553d2 100644 --- a/swtpm.changes +++ b/swtpm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 22 07:53:04 UTC 2020 - Gary Ching-Pang Lin + +- Use "Requires user(tss)" for the "tss" user and group + ------------------------------------------------------------------- Tue Dec 22 04:06:10 UTC 2020 - Gary Ching-Pang Lin diff --git a/swtpm.spec b/swtpm.spec index 1acf328..7f7efe6 100644 --- a/swtpm.spec +++ b/swtpm.spec @@ -45,6 +45,7 @@ BuildRequires: socat Requires: iproute2 Requires: python3-cryptography Requires: trousers +Requires: user(tss) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -89,15 +90,7 @@ make %{?_smp_mflags} mkdir -p %{buildroot}%{_localstatedir}/lib/swtpm-localca -%post -/sbin/ldconfig - -# the same user/group is employed by trousers -/usr/bin/getent group tss >/dev/null || /usr/sbin/groupadd -g 98 tss -/usr/bin/getent passwd tss >/dev/null || \ - /usr/sbin/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" \ - -d /var/lib/tpm tss - +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files