forked from ansible-lockdown/RHEL9-CIS
task change
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
b347e5dd00
commit
572f14ef6b
1 changed files with 12 additions and 6 deletions
|
|
@ -48,12 +48,18 @@
|
|||
- patch
|
||||
- rule_1.3.2
|
||||
|
||||
- name: "1.3.3 Ensure cryptographic mechanisms are used to protect the integrity of audit tools"
|
||||
ansible.builtin.template:
|
||||
src: etc/aide.conf.d/crypt_audit_procs.conf.j2
|
||||
dest: /etc/aide.conf.d/crypt_audit_procs.conf
|
||||
owner: root
|
||||
group: 0640
|
||||
- name: "1.3.3 | Ensure cryptographic mechanisms are used to protect the integrity of audit tools"
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/aide.conf
|
||||
marker: "# {mark} Audit tools (CIS - Ansible)"
|
||||
block: |
|
||||
/sbin/auditctl p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
/sbin/auditd p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
/sbin/augenrules p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
/sbin/aureport p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
/sbin/ausearch p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
/sbin/autrace p+i+n+u+g+s+b+acl+xattrs+sha512
|
||||
validate: aide -D --config %s
|
||||
when:
|
||||
- rhel9cis_rule_1_3_2
|
||||
- not system_is_ec2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue