Blame tests/p_selinux/selinux_enforce.sh

Athmane Madjoudj 2706f5
#!/bin/bash
Athmane Madjoudj 2706f5
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 2706f5
Athmane Madjoudj 2706f5
t_Log "Running $0 - check if SELinux is in enforcing mode"
Athmane Madjoudj 2706f5
Athmane Madjoudj 9d2331
if [ $SKIP_QA_HARNESS ]; then
Athmane Madjoudj 9d2331
    echo "Skipping this test ..."
Athmane Madjoudj 9d2331
else
Athmane Madjoudj 9d2331
    cat /selinux/enforce | grep 1  > /dev/null 2>&1
Athmane Madjoudj 9d2331
    t_CheckExitStatus $?
Athmane Madjoudj 9d2331
fi