Skip to content

Commit

Permalink
Fix broken mode for /var/log/audit (#552)
Browse files Browse the repository at this point in the history
```
Unable to open /var/log/audit/audit.log (Permission denied)
```

This PR fixes the issue by using the default permission set by auditd (`0700`).

Signed-off-by: Benedikt Böhm <[email protected]>
  • Loading branch information
hollow authored Jul 26, 2022
1 parent 24d3520 commit 2265497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/os_hardening/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ os_mnt_var_log_src: ""
os_mnt_var_log_options: 'rw,nosuid,nodev,noexec'
os_mnt_var_log_filesystem: "ext4"

os_mnt_var_log_audit_dir_mode: '0640'
os_mnt_var_log_audit_dir_mode: '0700'
os_mnt_var_log_audit_enabled: false
os_mnt_var_log_audit_src: ""
os_mnt_var_log_audit_options: 'rw,nosuid,nodev,noexec'
Expand Down

0 comments on commit 2265497

Please sign in to comment.