toolkit/func/core/pkg_selinux/20-check-policy-mismatch.sh

17 lines
224 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "selinux" "Check policy mismatch"
cat << EOF | /usr/bin/python3 -
import sys
import selinux.audit2why as audit2why
try:
audit2why.init()
except:
sys.exit(1)
sys.exit(0)
EOF
r_checkExitStatus $?