Skip to content

Commit

Permalink
Modifying find command so that rebase works.
Browse files Browse the repository at this point in the history
Signed-off-by: Diana-Maria Dumitru <[email protected]>
  • Loading branch information
DianaMariaDDM committed Feb 21, 2024
1 parent 385f540 commit e328b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/section_6/cis_6.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
- name: "6.1.10 | PATCH | Ensure world writable files and directories are secured"
block:
- name: "6.1.10 | AUDIT | Ensure world writable files and directories are secured | Get list of world-writable files"
ansible.builtin.shell: find / -type f \( ! -path "/run/user/*" -a ! -path "/proc/*" -a ! -path "*/containerd/*" -a ! -path "*/kubelet/pods/*" -a ! -path "/sys/kernel/security/apparmor/*" -a ! -path "/snap/*" -a ! -path "/sys/fs/cgroup/memory*" \) -type f -perm -0002 2>/dev/nul
ansible.builtin.shell: find / -type f \( ! -path "/run/user/*" -a ! -path "/proc/*" -a ! -path "*/containerd/*" -a ! -path "*/kubelet/pods/*" -a ! -path "/sys/kernel/security/apparmor/*" -a ! -path "/snap/*" -a ! -path "/sys/fs/cgroup/memory*" -a ! -path "/sys/fs/selinux/*" \) -type f -perm -0002 2>/dev/nul
failed_when: false
changed_when: false
register: amzn2023cis_6_1_10_perms_results
Expand Down

0 comments on commit e328b7c

Please sign in to comment.