Blame tests/p_selinux/selinux_alerts.sh

Athmane Madjoudj 41ed94
#!/bin/bash
Athmane Madjoudj 41ed94
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 41ed94
Athmane Madjoudj 41ed94
t_Log "Running $0 - check for SELinux alerts (AVC)"
Athmane Madjoudj 41ed94
40b4c8
if [ "$CONTAINERTEST" -eq "1" ]; then
40b4c8
    t_Log "Running in container -> SKIP"
40b4c8
    exit 0
40b4c8
fi
40b4c8
Athmane Madjoudj 02ecd4
grep -v "AVC" /var/log/audit/audit.log > /dev/null 2>&1
Athmane Madjoudj 41ed94
Athmane Madjoudj 41ed94
t_CheckExitStatus $?
Athmane Madjoudj 41ed94