You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tasks/Cat2/RHEL-09-65xxxx.yml
+7-15Lines changed: 7 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@
177
177
178
178
- name: "MEDIUM | RHEL-09-652025 | PATCH | RHEL 9 must be configured so that the rsyslog daemon does not accept log messages from other servers unless the server is being used for log aggregation."
179
179
when:
180
-
- rhel9stig_rsyslog_conf.matched > 0
180
+
- rhel9stig_rsyslog_conf.matched > 1
181
181
ansible.builtin.lineinfile:
182
182
backrefs: true
183
183
line: '#\1\2\3'
@@ -635,7 +635,8 @@
635
635
msg:
636
636
- "WARNING!! Below is the path and size of the partition for the audit logs."
637
637
- "Please make sure there is enough disk space for 1 week of logs"
- "Disk Space remaining: {{ audit_filesystem_space_left }}MB"
640
641
641
642
- name: "MEDIUM | RHEL-09-653030 | WARN | RHEL 9 must allocate audit record storage capacity to store at least one week's worth of audit records."
@@ -850,7 +851,7 @@
850
851
- auditd
851
852
ansible.builtin.file:
852
853
owner: root
853
-
path: "{{ rhel9stig_audit_log_filesystem }}"
854
+
path: "{{ discovered_auditd_logfile.stdout }}"
854
855
855
856
- name: "MEDIUM | RHEL-09-653090 | PATCH | RHEL 9 audit logs file must have mode 0600 or less permissive to prevent unauthorized access to the audit log."
856
857
when:
@@ -869,18 +870,9 @@
869
870
- NIST800-53R4_AU-9
870
871
- NIST800-53R4_SI-11
871
872
- auditd
872
-
block:
873
-
- name: "MEDIUM | RHEL-09-653090 | PATCH | RHEL 9 audit logs file must have mode 0600 or less permissive to prevent unauthorized access to the audit log."
874
-
ansible.builtin.file:
875
-
mode: '0600'
876
-
path: "{{ rhel9stig_audit_conf.logfile }}"
877
-
878
-
- name: "MEDIUM | RHEL-09-653090 | PATCH | RHEL 9 audit logs file must have mode 0600 or less permissive to prevent unauthorized access to the audit log."
879
-
ansible.builtin.file:
880
-
mode: '0440'
881
-
path: "{{ item }}"
882
-
with_fileglob:
883
-
- "{{ rhel9stig_audit_conf.logfile }}*"
873
+
ansible.builtin.file:
874
+
mode: go-rwx
875
+
path: "{{ discovered_auditd_logfile.stdout }}"
884
876
885
877
- name: "MEDIUM | RHEL-09-653095 | PATCH | RHEL 9 must periodically flush audit records to disk to prevent the loss of audit records."
0 commit comments