From 2706f50389d4ccf3101f88fbbd42b9bac9212885 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Aug 26 2011 10:15:51 +0000 Subject: Add SELinux enforcing test --- diff --git a/tests/0_common/40_selinux_enforce.sh b/tests/0_common/40_selinux_enforce.sh new file mode 100755 index 0000000..a38e044 --- /dev/null +++ b/tests/0_common/40_selinux_enforce.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "Running $0 - check if SELinux is in enforcing mode" + +cat /selinux/enforce | grep 1 > /dev/null 2>&1 + +t_CheckExitStatus $? +