Skip to content

Commit c9534e8

Browse files
committed
Prevent auditd halting machine on disk full
and updating CIS auditd variables. Unlike RHEL9 CIS, RHEL10 and Ubuntu24 variables for auditd are not dict formatted. Updated them to comply the pinned version of each CIS roles. Removed ``rhel10cis_auditd_max_log_file`` as it's no longer used by the collection.
1 parent 34dbd8c commit c9534e8

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

  • etc/kayobe/inventory/group_vars/cis-hardening

etc/kayobe/inventory/group_vars/cis-hardening/cis

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ rhel9cis_rule_5_6_1_1: false
8181
# Rocky 10 CIS Hardening Configuration
8282

8383
# Configure log rotation to prevent audit logs from filling the disk
84-
rhel10cis_auditd_action_mail_acct: root
8584
rhel10cis_auditd_admin_space_left_action: syslog
8685
rhel10cis_auditd_max_log_file_action: rotate
8786
rhel10cis_auditd_max_log_file_size: 1024
88-
rhel10cis_auditd_max_log_file: 10
8987
rhel10cis_auditd_space_left_action: syslog
88+
rhel10cis_auditd_disk_full_action: syslog
9089

9190
# Set an authselect profile name (required)
9291
rhel10cis_authselect_custom_profile_name: "stack"
@@ -236,11 +235,10 @@ ubtu24cis_no_world_write_adjust: false
236235
ubtu24cis_suid_sgid_adjust: false
237236

238237
# Configure log rotation to prevent audit logs from filling the disk
239-
ubtu24cis_auditd:
240-
action_mail_acct: root
241-
space_left_action: syslog
242-
admin_space_left_action: syslog
243-
max_log_file_action: rotate
238+
ubtu24cis_auditd_space_left_action: syslog
239+
ubtu24cis_auditd_admin_space_left_action: syslog
240+
ubtu24cis_auditd_max_log_file_action: rotate
241+
ubtu24cis_auditd_disk_full_action: syslog
244242

245243
# Max size of audit logs (MB)
246244
ubtu24cis_max_log_file_size: 1024

0 commit comments

Comments
 (0)