-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-9.4
-
audit-3.1.5-1.el9
-
None
-
None
-
2
-
rhel-sst-security-special-projects
-
ssg_security
-
26
-
None
-
QE ack
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
SECENGSP Cycle 6, SECENGSP Cycle 7
-
- Setting audit in immutable mode and loading it results in success.
-
Pass
-
Automated
-
Bug Fix
-
-
Done
-
-
x86_64
-
None
The augenrules command exits with 1 whenever the audit system has been set to immutable mode via "-e 2". Up until RHEL 9.3 (audit-3.0.7-104.el9.x86_64) it used to exit with 0.
Steps to reproduce
- Set audit in immutable mode by adding "-e 2" as an audit rule.
- # service auditd restart
- Either restart auditd again or run "augenrules --load"
Expected results
augenrules should exit with 0 instead of 1, as with previous versions.
Actual results
augenrules exits with 1, which is considered an error.
This seems to be related to this upstream bug report where it was fixed. If the upstream augenrules script is used, it exits normally:
[root@r94 sbin]# auditctl -s|grep enabled enabled 2 [root@r94 sbin]# augenrules --load /usr/sbin/augenrules: No change [root@r94 sbin]# echo $? 1 [root@r94 sbin]# ./augenrules.upstream --load ./augenrules.upstream: No change ./augenrules.upstream: Audit system is in immutable mode - exiting with no changes [root@r94 sbin]# echo $? 0 [root@r94 sbin]#
- links to
-
RHBA-2024:137108 audit update
- mentioned on