[master 2/2] Kickstart: Added SELinux test.
KosiehBarter
installerbot-noreply at redhat.com
Mon Jul 13 10:11:18 UTC 2015
From: Karel Valek <kvalek at redhat.com>
SELinux test merged to services test to avoid redundancy VM (save
resources).
Signed-off-by: Karel Valek <kvalek at redhat.com>
---
tests/kickstart_tests/services.ks | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/kickstart_tests/services.ks b/tests/kickstart_tests/services.ks
index cfd8224..1d50cbf 100644
--- a/tests/kickstart_tests/services.ks
+++ b/tests/kickstart_tests/services.ks
@@ -16,6 +16,9 @@ rootpw testcase
# Test services
services --disabled=sshd --enabled=systemd-timesyncd
+# Test SELinux
+selinux --enforcing
+
shutdown
%packages
@@ -41,6 +44,12 @@ if [[ $? -ne 0 ]]; then
echo "*** systemd-networkd is enabled, should be disabled" >> /root/RESULT
fi
+# SELinux test
+cat /etc/selinux/config | grep SELINUX=enforcing
+if [[ $? -ne 0 ]]; then
+ echo "*** SELinux not in enforcing mode" >> /root/RESULT
+fi
+
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
fi
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/ea116a1ca22bfeb1d3cdc60b571b2f0cd848432b
More information about the anaconda-patches
mailing list