Skip to content

Commit

Permalink
updated parts from #13
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Jul 9, 2024
1 parent ff4e330 commit 12a5fe7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tasks/Cat2/RHEL-09-23xxxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@
warn_control_id: "MEDIUM | RHEL-09-231200"
block:
- name: "MEDIUM | RHEL-09-231200 | AUDIT | RHEL 9 must prevent special devices on non-root local partitions. | discover partition"
ansible.builtin.shell: mount | grep '^/dev\S* on /\S' | grep nodev | awk -F" " '{ print $3}'
ansible.builtin.shell: mount | grep '^/dev\S* on /\S' | grep -v nodev | awk -F" " '{ print $3}'
changed_when: false
failed_when: rhel9stig_non_root_missing_nodev.rc not in [ 0, 1 ]
register: rhel9stig_non_root_missing_nodev
Expand Down Expand Up @@ -931,8 +931,7 @@
ansible.builtin.file:
mode: '0755'
path: "{{ item }}"
loop:
- "{{ rhel9stig_library_directory_perms.stdout_lines }}"
loop: "{{ rhel9stig_library_directory_perms.stdout_lines }}"

- name: "MEDIUM | RHEL-09-232025 | PATCH | RHEL 9 /var/log directory must have mode 0755 or less permissive."
when:
Expand Down Expand Up @@ -1036,7 +1035,7 @@
depth: 3
file_type: file
hidden: true
path: "{{ rhel9stig_home_filesystem }}"
path: ["{{ rhel9stig_home_filesystem}}", /root ]
patterns: ".*"
recurse: true
register: user_dot_files
Expand Down Expand Up @@ -1840,8 +1839,7 @@
ansible.builtin.file:
path: "{{ item }}"
mode: +t
loop:
- "{{ rhel9stig_public_dirs_stickybit.stdout_lines }}"
loop: "{{ rhel9stig_public_dirs_stickybit.stdout_lines }}"

- name: "RHEL-09-232245 | WARN | A sticky bit must be set on all RHEL 9 public directories."
when:
Expand Down

0 comments on commit 12a5fe7

Please sign in to comment.