Skip to content

Commit

Permalink
Ensure mode for audit files is audit in ansible_audit_auditctl_add_sy…
Browse files Browse the repository at this point in the history
…scall_rule
  • Loading branch information
Mab879 committed Jan 10, 2025
1 parent 3b057a4 commit 8f6ab94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shared/macros/10-ansible.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ The following macro remediates Audit syscall rule in :code:`/etc/audit/audit.rul
line: '\1\2\3{{ missing_syscalls | join("\3") }}\4'
backrefs: yes
state: present
mode: g-rwx,o-rwx
when: syscalls_found | length > 0 and missing_syscalls | length > 0

- name: Add the audit rule to {{ audit_file }}
Expand Down

0 comments on commit 8f6ab94

Please sign in to comment.