Skip to content

Commit

Permalink
Merge pull request #450 from ansible-lockdown/jan_24_updates
Browse files Browse the repository at this point in the history
Jan 24 updates
  • Loading branch information
uk-bolly authored Jan 26, 2024
2 parents c294efb + e401d83 commit 3ce0e42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tasks/fix-cat2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,7 @@
removable_mount: "{{ ansible_mounts | json_query('[?mount == `/media`] | [0]') }}" # noqa: jinja[invalid]
when:
- ansible_mounts | selectattr('mount', 'match', '^/media$') | list | length != 0
- "'nosuid' not in home_mount.options"
- "'nosuid' not in removable_mount.options"

- name: "MEDIUM | RHEL-07-021010 | AUDIT | The Red Hat Enterprise Linux operating system must prevent files with the setuid and setgid bit set from being executed on file systems that are used with removable media."
ansible.posix.mount:
Expand All @@ -2055,7 +2055,7 @@
removable_mount2: "{{ ansible_mounts | json_query('[?mount == `/mnt`] | [0]') }}" # noqa: jinja[invalid]
when:
- ansible_mounts | selectattr('mount', 'match', '^/mnt$') | list | length != 0
- "'nosuid' not in home_mount.options"
- "'nosuid' not in removable_mount2.options"
when:
- rhel_07_021010
- not (rhel7stig_system_is_chroot and rhel7stig_system_is_container)
Expand Down
8 changes: 1 addition & 7 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,7 @@
rhel_07_010491 or
rhel_07_021350
tags:
- cat1
- high
- RHEL-07-010481
- RHEL-07-010482
- RHEL-07-010483
- RHEL-07-010491
- RHEL-07-021350
- always

- name: "PRELIM | RHEL-07-010480 | RHEL-07-010490 | RHEL-07-021350 | RHEL-07-021700 | Check whether machine is UEFI-based"
ansible.builtin.stat:
Expand Down

0 comments on commit 3ce0e42

Please sign in to comment.