Skip to content

Commit

Permalink
Ensure audit rules.d are set 0600
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Dec 19, 2024
1 parent a06c809 commit 72c2b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ then
if [ ! -e "$key_rule_file" ]
then
touch "$key_rule_file"
chmod 0640 "$key_rule_file"
chmod 0600 "$key_rule_file"
fi
files_to_inspect+=("$key_rule_file")
fi
Expand Down
6 changes: 3 additions & 3 deletions shared/templates/audit_file_contents/ansible.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)
}}}

- name: Remove any permissions from other group
file:
- name: {{{ rule_title }}} - Remove any permissions from group and other
ansible.builtin.file:
path: {{{ FILEPATH }}}
mode: o-rwx
mode: g-rwx,o-rwx

0 comments on commit 72c2b64

Please sign in to comment.