import CS audit-3.1.5-1.el9

This commit is contained in:
eabdullin 2024-09-30 15:09:11 +00:00
parent 6fcd224d96
commit 03d8f1a72e
3 changed files with 43 additions and 14 deletions

View File

@ -1 +1 @@
45cffb1ded9a57a79b33547f58228131d3eb14a6 SOURCES/audit-3.1.2.tar.gz e58e9ecd90b54b04783e0a1f0c1cfd65880f42f8 SOURCES/audit-3.1.5.tar.gz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/audit-3.1.2.tar.gz SOURCES/audit-3.1.5.tar.gz

View File

@ -1,8 +1,8 @@
Summary: User space tools for kernel auditing Summary: User space tools for kernel auditing
Name: audit Name: audit
Version: 3.1.2 Version: 3.1.5
Release: 2%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://people.redhat.com/sgrubb/audit/ URL: http://people.redhat.com/sgrubb/audit/
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
@ -19,8 +19,9 @@ BuildRequires: autoconf automake libtool
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires(post): systemd coreutils Requires(post): systemd coreutils
Requires(preun): systemd initscripts-service Requires(preun): systemd
Requires(postun): systemd coreutils initscripts-service Requires(postun): systemd coreutils
Recommends: initscripts-service
# Placing this here under the assumption that anything using the # Placing this here under the assumption that anything using the
# python libraries expects the system to have an audit daemon # python libraries expects the system to have an audit daemon
@ -141,6 +142,8 @@ make check
rm -f rules/Makefile* rm -f rules/Makefile*
%post %post
%systemd_post auditd.service
# Copy default rules into place on new installation # Copy default rules into place on new installation
files=`ls /etc/audit/rules.d/ 2>/dev/null | wc -w` files=`ls /etc/audit/rules.d/ 2>/dev/null | wc -w`
if [ "$files" -eq 0 ] ; then if [ "$files" -eq 0 ] ; then
@ -151,16 +154,27 @@ if [ "$files" -eq 0 ] ; then
fi fi
chmod 0600 /etc/audit/rules.d/audit.rules chmod 0600 /etc/audit/rules.d/audit.rules
fi fi
%systemd_post auditd.service
%preun # If upgrading, restart the daemon if it's running
if [ $1 -eq 0 ]; then if [ $1 -eq 2 ]; then
/sbin/service auditd stop > /dev/null 2>&1 state=$(systemctl status auditd | awk '/Active:/ { print $2 }')
if [ $state = "active" ] ; then
auditctl --signal stop || true
systemctl start auditd
fi
# if installing, start it since preset says we should be running
elif [ $1 -eq 1 ]; then
systemctl start auditd
fi fi
%postun %preun
if [ $1 -ge 1 ]; then %systemd_preun auditd.service
/sbin/service auditd condrestart > /dev/null 2>&1 || : # if uninstalling stop the daemon
if [ $1 -eq 0 ]; then
auditctl --signal stop || true
# also delete loaded rules if uninstalling
auditctl -D || true
fi fi
%files libs %files libs
@ -225,7 +239,6 @@ fi
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/auditd/rotate %attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/auditd/rotate
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/auditd/state %attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/auditd/state
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/auditd/stop %attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/auditd/stop
%attr(750,root,root) %{_libexecdir}/audit-functions
%ghost %{_localstatedir}/run/auditd.state %ghost %{_localstatedir}/run/auditd.state
%attr(-,root,-) %dir %{_var}/log/audit %attr(-,root,-) %dir %{_var}/log/audit
%attr(750,root,root) %dir /etc/audit %attr(750,root,root) %dir /etc/audit
@ -262,6 +275,22 @@ fi
%attr(750,root,root) %{_sbindir}/audispd-zos-remote %attr(750,root,root) %{_sbindir}/audispd-zos-remote
%changelog %changelog
* Tue Jul 09 2024 Attila Lakatos <alakatos@redhat.com> - 3.1.5-1
- New upstream maintenance release, 3.1.4
- Prevent scriplets from failing
- When upgrading, restart the daemon if it's running
- If uninstalling, stop the daemon
- auditctl: use pidfd_send_signal for signaling auditd
Resolves: RHEL-45865
- Minor doc update
Resolves: RHEL-5186
- augenrules: do not exit with failure if in immutable mode
Resolves: RHEL-40110
- auditd.service: Disable ProtectControlGroups
Resolves: RHEL-5197
- auditctl: correct output when displaying rules with exe/path/dir
Resolves: RHEL-40243
* Wed Nov 08 2023 Sergio Correia <scorreia@redhat.com> - 3.1.2-2 * Wed Nov 08 2023 Sergio Correia <scorreia@redhat.com> - 3.1.2-2
- Remove %systemd_preun from %preun scriptlet, as it was causing troubles when removing audit - Remove %systemd_preun from %preun scriptlet, as it was causing troubles when removing audit
Related: RHEL-14896 Related: RHEL-14896