Skip to content

Commit

Permalink
Make max_log_file_action for auditd configurable
Browse files Browse the repository at this point in the history
This commit allows to configure the max_log_file_action auf auditd to
avoid filling small /var/log partitions for systems that create many
audit log entries. Or run for a long period of time.

Signed-off-by: Jan Dittberner <jan.dittberner@t-systems.com>
  • Loading branch information
jandd committed Nov 5, 2019
1 parent 9f11c47 commit e648ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ os_hardening_enabled: true

# Set to false to disable installing and configuring auditd.
os_auditd_enabled: true
os_auditd_max_log_file_action: keep_logs

# Set the SELinux state, can be either disabled, permissive, or enforcing.
os_selinux_state: enforcing
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/audit/auditd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dispatcher = /sbin/audispd
name_format = NONE
##name = mydomain
max_log_file = 6
max_log_file_action = keep_logs
max_log_file_action = {{ os_auditd_max_log_file_action }}
space_left = 75
space_left_action = SYSLOG
action_mail_acct = root
Expand Down

0 comments on commit e648ce7

Please sign in to comment.