From d0f905f3c8cf53c4d3c37271f3a50f6dfe100e68 Mon Sep 17 00:00:00 2001 From: Cropi Date: Tue, 6 Jan 2026 14:57:39 +0100 Subject: [PATCH] RHEL 10.2 ERRATUM Fix POSTIN scriplet to not fail during upgrade Resolves: RHEL-128464 --- audit.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/audit.spec b/audit.spec index 30c8d07..95fe67d 100644 --- a/audit.spec +++ b/audit.spec @@ -2,7 +2,7 @@ Summary: User space tools for kernel auditing Name: audit Version: 4.0.3 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL-2.0-or-later AND LGPL-2.0-or-later URL: https://github.com/linux-audit/audit-userspace/ Source0: https://github.com/linux-audit/audit-userspace/archive/refs/tags/v%{version}.tar.gz @@ -162,14 +162,14 @@ if [ -f /run/ostree-booted ] ; then fi # If an upgrade, restart it if it's running if [ $1 -eq 2 ] ; then - state=$(systemctl status auditd | awk '/Active:/ { print $2 }') + state=$(systemctl show -P ActiveState auditd) if [ $state = "active" ] ; then auditctl --signal stop || true - systemctl start auditd + systemctl start auditd || true fi # if an install, start it since preset says we should be running elif [ $1 -eq 1 ] ; then - systemctl start auditd + systemctl start auditd || true fi %post rules @@ -315,6 +315,10 @@ fi %attr(750,root,root) %{_sbindir}/audispd-zos-remote %changelog +* Tue Jan 06 2026 Attila Lakatos - 4.0.3-5 +- Fix POSTIN scriplet to not fail during upgrade + Resolves: RHEL-128464 + * Fri Apr 11 2025 Attila Lakatos - 4.0.3-4 - ausearch-checkpoint race condition fix Resolves: RHEL-86896