Don't do "live" operations during rpm-ostree composes

Resolves: RHEL-69033
This commit is contained in:
Cropi 2025-02-03 10:44:47 +01:00
parent ff70a3750e
commit 1a3c53f35b

View File

@ -2,7 +2,7 @@
Summary: User space tools for kernel auditing
Name: audit
Version: 3.1.5
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
@ -155,6 +155,10 @@ rm -f rules/Makefile*
%post
%systemd_post auditd.service
# Do not perform service start/restart when running during an rpm-ostree compose
if [ -f /run/ostree-booted ] ; then
exit 0
fi
# Copy default rules into place on new installation
files=`ls /etc/audit/rules.d/ 2>/dev/null | wc -w`
@ -288,6 +292,10 @@ fi
%attr(750,root,root) %{_sbindir}/audispd-zos-remote
%changelog
* Mon Feb 03 2025 Attila Lakatos <alakatos@redhat.com> - 3.1.5-3
- Don't do "live" operations during rpm-ostree composes
Resolves: RHEL-69033
* Wed Jan 08 2025 Attila Lakatos <alakatos@redhat.com> - 3.1.5-2
- Disable ProtectKernelModules=true in service file
Resolves: RHEL-59570