From a2b868844b9c213f26ddb8772b5b0066f0325dbe Mon Sep 17 00:00:00 2001 From: eabdullin Date: Thu, 28 Mar 2024 11:56:51 +0000 Subject: [PATCH] import CS tpm2-abrmd-2.4.0-4.el9 --- SPECS/tpm2-abrmd.spec | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/SPECS/tpm2-abrmd.spec b/SPECS/tpm2-abrmd.spec index bfcc99d..340896c 100644 --- a/SPECS/tpm2-abrmd.spec +++ b/SPECS/tpm2-abrmd.spec @@ -2,7 +2,7 @@ Name: tpm2-abrmd Version: 2.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A system daemon implementing TPM2 Access Broker and Resource Manager License: BSD @@ -24,6 +24,7 @@ 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 @@ -54,17 +55,6 @@ 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 @@ -93,6 +83,10 @@ exit 0 %changelog +* Tue Oct 3 2023 Štěpán Horáček - 2.4.0-4 +- Remove user-creation code that is already handled by a requirement. + Resolves: RHEL-8814 + * Tue Aug 10 2021 Mohan Boddu - 2.4.0-3 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688