| |
@@ -44,6 +44,13 @@
|
| |
mv %{buildroot}/%{_udevrulesdir}/tpm-udev.rules %{buildroot}/%{_udevrulesdir}/60-tpm-udev.rules
|
| |
find %{buildroot}%{_libdir} -type f -name \*.la -delete
|
| |
|
| |
+ %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 tpm2-abrmd package to sandbox the tpm2-abrmd daemon" tss
|
| |
+ exit 0
|
| |
+
|
| |
%files
|
| |
%doc README.md CHANGELOG.md
|
| |
%license LICENSE
|
| |
Systemd will fail to start tpm2-abrmd if the tss user
does not exist.
Signed-off-by: Jerry Snitselaar jsnitsel@redhat.com