SV-270715r1066634_rule
V-270715
SRG-OS-000480-GPOS-00227
UBTU-24-300029
CAT II
10
Configure Ubuntu 24.04 LTS to generate audit records for events that affect "/var/log/journal".
Add or update the following rule to "/etc/audit/rules.d/stig.rules":
-w /var/log/journal -p wa -k systemd_journal
To reload the rules file, issue the following command:
$ sudo augenrules --load
Verify Ubuntu 24.04 LTS generates audit records for all events that affect "/var/log/journal" with the following command:
$ sudo auditctl -l | grep journal
-w /var/log/journal -p wa -k systemd_journal
If the command does not return a line that matches the example or the line is commented out, this is a finding.
Note: The "-k" allows for specifying an arbitrary identifier, and the string after it does not need to match the example output above.
V-270715
False
UBTU-24-300029
Verify Ubuntu 24.04 LTS generates audit records for all events that affect "/var/log/journal" with the following command:
$ sudo auditctl -l | grep journal
-w /var/log/journal -p wa -k systemd_journal
If the command does not return a line that matches the example or the line is commented out, this is a finding.
Note: The "-k" allows for specifying an arbitrary identifier, and the string after it does not need to match the example output above.
M
5673