Blob Blame History Raw
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>

t_Log "Running $0 - check if SELinux is in enforcing mode"

if [ "$centos_ver" = "7" ] ; then
  selinux_file=/sys/fs/selinux/enforce
else
  selinux_file=/selinux/enforce
fi

if [ "$SKIP_QA_HARNESS" = "1" ] ; then
    echo "Skipping this test ..."
else
    cat $selinux_file | grep 1  > /dev/null 2>&1
    t_CheckExitStatus $?
fi