SV-257528r960930_rule
V-257528
SRG-APP-000118-CTR-000240
CNTR-OS-000260
CAT II
10
Correct journal file permissions by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; machine_id=$(systemd-machine-id-setup --print); chmod 640 /var/log/journal/$machine_id/system.journal' 2>/dev/null; done
Verify the system journal file has mode "0640" or less permissive by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; machine_id=$(systemd-machine-id-setup --print); stat -c "%a %n" /var/log/journal/$machine_id/system.journal' 2>/dev/null; done
If a value of "0640" or less permissive is not returned, this is a finding.
V-257528
False
CNTR-OS-000260
Verify the system journal file has mode "0640" or less permissive by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; machine_id=$(systemd-machine-id-setup --print); stat -c "%a %n" /var/log/journal/$machine_id/system.journal' 2>/dev/null; done
If a value of "0640" or less permissive is not returned, this is a finding.
M
5547