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,15 @@
#!/usr/bin/env bash
config_file="/etc/aide/aide.conf"
pattern=("/sbin/auditctl" "/sbin/auditd" "/sbin/ausearch" "/sbin/aureport" "/sbin/autrace" "/sbin/augenrules")
if [ ! -f "$config_file" ]; then
exit 0
fi
for line in "${pattern[@]}"; do
regex_pattern="^\s*#*\s*${line}\b"
if ! grep -Eq "$regex_pattern" "$config_file"; then
exit 1
fi
done
exit 0