Skip to content

PCOM 51 Misc fixes#498

Merged
zulfilee merged 1 commit intoubuntu22.04-fips-patchfrom
fix-stig-misc-controls
Jan 29, 2026
Merged

PCOM 51 Misc fixes#498
zulfilee merged 1 commit intoubuntu22.04-fips-patchfrom
fix-stig-misc-controls

Conversation

@zulfilee
Copy link
Copy Markdown
Contributor

+###############################################################################
+# Misc fixes for STIG Compliance
+###############################################################################
+audit_rule_file_session=/etc/audit/rules.d/session.rules
+echo "-w /var/run/utmp -p wa -k session" >> "$audit_rule_file_session"
+
+audit_rule_file_modules=/etc/audit/rules.d/modules.rules
+echo "-w /bin/kmod -p x -k modules" >> "$audit_rule_file_modules"
+
+audit_rule_file_cronjob=/etc/audit/rules.d/cronjob.rules
+echo "-w /etc/cron.d/ -p wa -k cronjob" >> "$audit_rule_file_cronjob"
+echo "-w /var/spool/cron/ -p wa -k cronjobs" >> "$audit_rule_file_cronjob"
+
+chmod 640 "$audit_rule_file_cronjob"
+chmod 740 /bin/journalctl
+
+# END of Misc fixes for STIG Compliance

@zulfilee zulfilee merged commit 7c26976 into ubuntu22.04-fips-patch Jan 29, 2026
2 checks passed
@zulfilee zulfilee deleted the fix-stig-misc-controls branch January 29, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants