SV-269529r1050412_rule
V-269529
SRG-OS-000047-GPOS-00023
ALMA-09-054470
CAT II
10
Configure AlmaLinux OS 9 to rotate the audit log when it reaches maximum size.
Add or update the following line ("max_log_file_action" can be set to "ROTATE" or "KEEP_LOGS" depending on configuration) in the "/etc/audit/auditd.conf" file:
max_log_file_action = ROTATE
Verify that AlmaLinux OS 9 takes the appropriate action when the audit files have reached maximum size, with the following command:
$ grep max_log_file_action /etc/audit/auditd.conf
max_log_file_action = ROTATE
If the value of the "max_log_file_action" option is not "ROTATE", "KEEP_LOGS", is commented out, or is missing, this is a finding.
V-269529
False
ALMA-09-054470
Verify that AlmaLinux OS 9 takes the appropriate action when the audit files have reached maximum size, with the following command:
$ grep max_log_file_action /etc/audit/auditd.conf
max_log_file_action = ROTATE
If the value of the "max_log_file_action" option is not "ROTATE", "KEEP_LOGS", is commented out, or is missing, this is a finding.
M
5664