Compare commits

..

No commits in common. 'c9-beta' and 'c9' have entirely different histories.
c9-beta ... c9

@ -2,7 +2,7 @@
Name: tpm2-abrmd
Version: 2.4.0
Release: 4%{?dist}
Release: 3%{?dist}
Summary: A system daemon implementing TPM2 Access Broker and Resource Manager
License: BSD
@ -24,7 +24,6 @@ BuildRequires: tpm2-tss-devel >= 2.4.0
# tpm2-abrmd depends on the package that contains its SELinux policy module
Requires: (%{name}-selinux >= 2.0.0-1%{?dist} if selinux-policy-%{selinuxtype})
Requires: tpm2-tss >= 2.4.0
%description
tpm2-abrmd is a system daemon implementing the TPM2 access broker (TAB) and
@ -55,6 +54,17 @@ required to build applications that use tpm2-abrmd.
find %{buildroot}%{_libdir} -type f -name \*.la -delete
rm -f %{buildroot}/%{_presetdir}/tpm2-abrmd.preset
%pre
getent group tss >/dev/null || groupadd -f -g 59 -r tss
if ! getent passwd tss >/dev/null ; then
if ! getent passwd 59 >/dev/null ; then
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
else
useradd -r -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
fi
fi
exit 0
%post
%systemd_post tpm2-abrmd.service
@ -83,10 +93,6 @@ rm -f %{buildroot}/%{_presetdir}/tpm2-abrmd.preset
%changelog
* Tue Oct 3 2023 Štěpán Horáček <shoracek@redhat.com> - 2.4.0-4
- Remove user-creation code that is already handled by a requirement.
Resolves: RHEL-8814
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.0-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688

Loading…
Cancel
Save