You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
392 B
19 lines
392 B
12 months ago
|
#!/bin/bash
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
|
||
|
t_Log "Running $0 - check if SELinux is in enforcing mode"
|
||
|
|
||
|
if [ "$centos_ver" -ge 7 ] ; then
|
||
|
selinux_file=/sys/fs/selinux/enforce
|
||
|
else
|
||
|
selinux_file=/selinux/enforce
|
||
|
fi
|
||
|
|
||
|
if [ "$SKIP_QA_HARNESS" = "1" ] ; then
|
||
|
t_Log "Skipping this test ..."
|
||
|
else
|
||
|
cat $selinux_file | grep 1 > /dev/null 2>&1
|
||
|
t_CheckExitStatus $?
|
||
|
fi
|
||
|
|