Blob Blame History Raw
#!/bin/bash

if [ "$centos_ver" -ge 8 ] ; then
PYTHON=python3
else
PYTHON=python
fi

t_Log "Running $0 - Testing audit2why for policy mismatch ..."


if [ "$CONTAINERTEST" -eq "1" ]; then
    t_Log "Running in container -> SKIP"
    exit 0
fi

cat << __EOF__ | $PYTHON -
import sys
import selinux.audit2why as audit2why

try:
  audit2why.init()
except:
  sys.exit(1)
sys.exit(0)
__EOF__

t_CheckExitStatus $?