Skip to content

Commit

Permalink
issues #278 #289 addressed
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 15, 2024
1 parent 297d742 commit 6a396be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/fix-cat2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@
- name: "MEDIUM | RHEL-08-010380 | PATCH | RHEL 8 must require users to provide a password for privilege escalation."
ansible.builtin.replace:
path: "{{ item }}"
regexp: '^([^#|{% if system_is_ec2 %}ec2-user{% endif %}].*)NOPASSWD(.*)'
regexp: '^((?!#|{% for name in rhel8stig_sudoers_exclude_nopasswd_list %}{{ name }}{% if not loop.last -%}|{%- endif -%}{% endfor %}).*)NOPASSWD(.*)'
replace: '\1PASSWD\2'
with_items:
- "{{ rhel8stig_sudoers_files.stdout_lines }}"
Expand Down Expand Up @@ -6280,7 +6280,7 @@
"MEDIUM | RHEL-08-040126 | PATCH | RHEL 8 must mount /var/log with the nodev option."
"MEDIUM | RHEL-08-040127 | PATCH | RHEL 8 must mount /var/log with the nosuid option."
"MEDIUM | RHEL-08-040128 | PATCH | RHEL 8 must mount /var/log with the noexec option."
ansible.builtin.shell: mount | grep -w "/var/log "
ansible.builtin.shell: mount | grep '\s\+/var/log\s\+'
changed_when: false
failed_when: false
register: rhel8stig_040126_var_log_status
Expand Down

0 comments on commit 6a396be

Please sign in to comment.