From: Karel Valek kvalek@redhat.com
SELinux test merged to services test to avoid redundancy VM (save resources).
Signed-off-by: Karel Valek kvalek@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