Skip to content

Commit

Permalink
Improved mode logic for audit log
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Sep 17, 2024
1 parent 31e5267 commit 6521784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/section_4/cis_4.1.4.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"4.1.4.3 | PATCH | Ensure only authorized groups are assigned ownership of audit log files"
ansible.builtin.file:
path: "{{ audit_discovered_logfile.stdout }}"
mode: "{% if auditd_logfile.stat.mode > '0640' %}0640{% endif %}"
mode: 'u-x,g-wx,o-rwx'
owner: root
group: root
when:
Expand Down

0 comments on commit 6521784

Please sign in to comment.