Skip to content

Commit

Permalink
Merge pull request #10288 from jhrozek/SRG-APP-000243-CTR-000600
Browse files Browse the repository at this point in the history
SRG-APP-000243-CTR-000600 is completely manual
  • Loading branch information
jhrozek authored Mar 9, 2023
2 parents e45967a + 857964f commit 35c1926
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion controls/srg_ctr/SRG-APP-000243-CTR-000600.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,19 @@ controls:
- medium
title: {{{ full_name }}} must prevent unauthorized and unintended information
transfer via shared system resources.
status: inherently met
status: manual
check: |-
Verify that all world-writable directories have the sticky bit set. The following command will list any world-writeable directories that do not have the sticky bit set.
> for node in $(oc get node -oname); do oc debug $node -- chroot /host /bin/bash -c 'echo -n "$HOSTNAME "; find / -type d \( -perm -0002 -a ! -perm -1000 ! -path "/var/lib/containers/*" ! -path "/var/lib/kubelet/pods/*" ! -path "/sysroot/ostree/deploy/*" \) -print 2>/dev/null' 2>/dev/null; done
If there are any directories listed in the results, this is a finding.
fixtext: |-
Fix the directory permissions, by either removing world-writeable permission, or setting the sticky bit
> oc debug node/<node_name> -- chroot /host /bin/bash -c 'chmod XXXX <directory>'
where
node_name: The name of the node to connect to (oc get node)
XXXX: Either 1777 (sticky bit) or 0755 (remove group and world write permission)
<directory>: The directory on which to correct the permissions

0 comments on commit 35c1926

Please sign in to comment.