forked from ansible-lockdown/RHEL9-CIS
updated logic on 7.12 and 7.13 thansk to @yinggs
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
98795d440c
commit
13ab9d5440
1 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@
|
|||
|
||||
- name: "7.1.12 | AUDIT | Ensure no files or directories without an owner and a group exist | Flatten no_user_items results for easier use"
|
||||
ansible.builtin.set_fact:
|
||||
discovered_unowned_files_flatten: "{{ discovered_unowned_files.results | map(attribute='stdout_lines') | flatten }}"
|
||||
discovered_unowned_files_flatten: "{{ discovered_unowned_files.results | selectattr('stdout_lines', 'defined') | map(attribute='stdout_lines') | flatten }}"
|
||||
|
||||
- name: "7.1.12 | AUDIT | Ensure no files or directories without an owner and a group exist | Alert on unowned files and directories"
|
||||
when:
|
||||
|
|
@ -295,7 +295,7 @@
|
|||
|
||||
- name: "7.1.13 | AUDIT | Audit SUID executables | Flatten suid_executables results for easier use"
|
||||
ansible.builtin.set_fact:
|
||||
discovered_suid_sgid_files_flatten: "{{ discovered_suid_sgid_files.results | map(attribute='stdout_lines') | flatten }}"
|
||||
discovered_suid_sgid_files_flatten: "{{ discovered_suid_sgid_files.results | selectattr('stdout_lines', 'defined') | map(attribute='stdout_lines') | flatten }}"
|
||||
|
||||
- name: "7.1.13 | AUDIT | Audit SUID executables | Alert SUID executables exist"
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue