From 8fdc15508953c0878fe75d6e399ceff961b8164d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Hor=C3=A1=C4=8Dek?= Date: Tue, 24 Oct 2023 15:04:35 +0200 Subject: [PATCH] Fix home directory of the tss user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: RHEL-14439 Signed-off-by: Štěpán Horáček --- tpm2-tss.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tpm2-tss.spec b/tpm2-tss.spec index 9a767f5..10dd101 100644 --- a/tpm2-tss.spec +++ b/tpm2-tss.spec @@ -1,6 +1,6 @@ Name: tpm2-tss Version: 2.3.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: TPM2.0 Software Stack # The entire source code is under BSD except implementation.h and tpmb.h which @@ -71,9 +71,9 @@ find %{buildroot}%{_libdir} -type f -name \*.la -delete 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 + useradd -r -u 59 -g tss -d / -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 + useradd -r -g tss -d / -s /sbin/nologin -c "Account used for TPM access" tss fi fi exit 0 @@ -124,6 +124,10 @@ use tpm2-tss. %postun -p /sbin/ldconfig %changelog +* Wed Oct 18 2023 Štěpán Horáček - 2.3.2-6 +- Fix home directory of the tss user + Related: RHEL-14439 + * Wed Jun 7 2023 Štěpán Horáček - 2.3.2-5 - Ensure layer number is in bounds Resolves: rhbz#2160302