File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 45394539 else
45404540 # Rule isn't present yet. Append it at the end of $audit_rules_file file
45414541 # with proper key
4542-
45434542 echo "-w /run/utmp -p wa -k session" >> "$audit_rules_file"
4544- echo "-w /var/run/utmp -p wa -k session" >> "$audit_rules_file"
45454543 fi
45464544done
45474545# Create a list of audit *.rules files that should be inspected for presence and correctness
46174615 else
46184616 # Rule isn't present yet. Append it at the end of $audit_rules_file file
46194617 # with proper key
4620-
46214618 echo "-w /run/utmp -p wa -k session" >> "$audit_rules_file"
46224619 fi
46234620done
@@ -28414,3 +28411,20 @@ fi
2841428411(>&2 echo "FIX FOR THIS RULE 'xccdf_org.ssgproject.content_rule_auditd_offload_logs' IS MISSING!")
2841528412# END fix for 'xccdf_org.ssgproject.content_rule_auditd_offload_logs'
2841628413
28414+ ###############################################################################
28415+ # Misc fixes for STIG Compliance
28416+ ###############################################################################
28417+ audit_rule_file_session=/etc/audit/rules.d/session.rules
28418+ echo "-w /var/run/utmp -p wa -k session" >> "$audit_rule_file_session"
28419+
28420+ audit_rule_file_modules=/etc/audit/rules.d/modules.rules
28421+ echo "-w /bin/kmod -p x -k modules" >> "$audit_rule_file_modules"
28422+
28423+ audit_rule_file_cronjob=/etc/audit/rules.d/cronjob.rules
28424+ echo "-w /etc/cron.d/ -p wa -k cronjob" >> "$audit_rule_file_cronjob"
28425+ echo "-w /var/spool/cron/ -p wa -k cronjobs" >> "$audit_rule_file_cronjob"
28426+
28427+ chmod 640 "$audit_rule_file_cronjob"
28428+ chmod 740 /bin/journalctl
28429+
28430+ # END of Misc fixes for STIG Compliance
You can’t perform that action at this time.
0 commit comments