AlmaLinux OS 9 audit logs must be owned by the root group to prevent unauthorized read access.
An XCCDF Rule
Description
Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality. Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit operating system activity. Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000059-GPOS-00029
- ID
- SV-269538r1050421_rule
- Version
- ALMA-09-055900
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
Change the audit logs to be owned by the root group:
$ chgrp root /var/log/audit/audit.log
Then set the group to root in /etc/audit/auditd.conf by adding or updating the following line:
log_group = root