SV-268118r1131037_rule
V-268118
SRG-OS-000057-GPOS-00027
ANIX-00-000600
CAT II
10
The systemd-journald files are by design set to 0640 mode.
If any files are found with incorrect perms, correct them with the following command:
$ sudo find /var/log/journal -type f -exec chmod 0640 {} \;
Verify NixOS protects log information from unauthorized read access by implementing a mode of 0640 or less on the creation of log files with the following command:
$ sudo find /var/log/journal -type f -perm -640 -not -perm 640 -printf "%p %m\n"
If any log files have a permission of greater than 0640, this is a finding.
V-268118
False
ANIX-00-000600
Verify NixOS protects log information from unauthorized read access by implementing a mode of 0640 or less on the creation of log files with the following command:
$ sudo find /var/log/journal -type f -perm -640 -not -perm 640 -printf "%p %m\n"
If any log files have a permission of greater than 0640, this is a finding.
M
5658