SV-257530r960930_rule
V-257530
SRG-APP-000118-CTR-000240
CNTR-OS-000280
CAT II
10
Correct log directory permissions by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; chmod 755 /var/log/' 2>/dev/null; done
Verify the "/var/log" directory has a mode of "0755" or less by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; stat -c "%a %n" /var/log' 2>/dev/null; done
If a value of "0755" or less permissive is not returned, this is a finding.
V-257530
False
CNTR-OS-000280
Verify the "/var/log" directory has a mode of "0755" or less by executing the following:
for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; stat -c "%a %n" /var/log' 2>/dev/null; done
If a value of "0755" or less permissive is not returned, this is a finding.
M
5547