Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#6574 from vojtapolasek/fix_world_…
Browse files Browse the repository at this point in the history
…writable_dirs_root_owned_ansible

fix ansible remediation of dir_perms_world_writable_root_owned
  • Loading branch information
yuumasato authored Jan 28, 2021
2 parents 84a43a3 + a53b519 commit 3ada19b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

- name: "Create empty list of excluded paths"
set_fact:
excluded_paths: "[]"
excluded_paths: []

- name: "Detect nonlocal file systems and add them to excluded paths"
set_fact:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# packages = nfs-utils

mkdir -p /tmp/testdir/testdir2
mkdir /tmp/testmount
chown 2 /tmp/testdir/testdir2
chmod 777 /tmp/testdir/testdir2

echo '/tmp/testdir localhost(rw)' > /etc/exports
systemctl restart nfs-server
mount.nfs localhost:/tmp/testdir /tmp/testmount

0 comments on commit 3ada19b

Please sign in to comment.