This commit is contained in:
2026-05-11 09:15:08 +02:00
parent 9bec2b9e42
commit 404ee3fec4
641 changed files with 416825 additions and 0 deletions
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Path to the auditd configuration file
AUDITD_CONF="/etc/audit/auditd.conf"
# Check if the file exists
if [[ -f "$AUDITD_CONF" ]]; then
# Use grep to search for the pattern
if grep -qE "^max_log_file[[:space:]]*=[[:space:]]*[0-9]+" "$AUDITD_CONF"; then
exit 0
else
exit 1
fi
else
echo "File $AUDITD_CONF does not exist."
exit 1
fi