Overview

Request 498707 accepted

No description set
Loading...

Dominique Leuenberger's avatar
+# the same user is employed by trousers:
+#
+# trousers just needs those accounts for dropping privileges to. The service
+# starts as root and uses set*id to drop to tss, after the tpm device has been
+# opened.
+#
+# resourcemgr has no set*id handling and thus requires /dev/tpm to be owned
+# by the tss user. Therefore we also need to install a udev rule file.
+#
+# trousers was here first and created the user like this, also giving it a
+# home in /var/lib/tpm. I don't think the home directory is used by any of
+# both packages ATM. Trousers is keeping state there, but the directory is
+# owned by root and files are opened before dropping privileges. The passwd
+# entry seems not to be evaluated.
+#
+# so I guess we can share the account between the two packages for now.
+%_bindir/getent group tss >/dev/null || %{_sbindir}/groupadd -g 98 tss
+%_bindir/getent passwd tss >/dev/null || \
+   %{_sbindir}/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" \
+   -d %{_localstatedir}/lib/tpm tss

In tnis case I recommend to split the user generation according to https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups

then only one package has to 'care' for the correct settins and the other one does: Requires: user(tss)

Request History
Alexander Naumov's avatar

Alexander_Naumov created request


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto added factory-repo-checker as a reviewer

Please review build success


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Staging Bot's avatar

staging-bot added openSUSE:Factory:Staging:adi:76 as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:adi:76"


Staging Bot's avatar

staging-bot accepted review

Picked openSUSE:Factory:Staging:adi:76


Factory Repo Checker's avatar

factory-repo-checker accepted review

Builds for repo security/openSUSE_Factory


Jan Engelhardt's avatar

jengelh accepted review


Staging Bot's avatar

staging-bot accepted review

ready to accept


Staging Bot's avatar

staging-bot approved review

ready to accept


Dominique Leuenberger's avatar

dimstar_suse accepted request

Accept to openSUSE:Factory

openSUSE Build Service is sponsored by