[kernel-tests] 47/73: Check for SELinux before running paxtest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is an automated email from the git hooks/post-receive script.

jforbes pushed a commit to branch master
in repository kernel-tests.

commit 24bf68be38c799c83440252a2c07ff682a342d80
Author: Justin M. Forbes <jforbes@xxxxxxxxxx>
Date:   Thu Aug 7 16:54:06 2014 +0200

    Check for SELinux before running paxtest
---
 default/paxtest/runtest.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/default/paxtest/runtest.sh b/default/paxtest/runtest.sh
index 8b44626..8aa3b4e 100755
--- a/default/paxtest/runtest.sh
+++ b/default/paxtest/runtest.sh
@@ -23,6 +23,13 @@ check_bits()
 	fi
 }
 
+# Ensure SELinux is enforcing
+selinux=`getenforce`
+if [ "$selinux" != "Enforcing" ]; then
+        echo "SELinux must be enforcing for this test"
+        exit 3
+fi
+
 # Build.
 make linux >/dev/null 2>/dev/null
 if [ ! -f ./paxtest ]; then

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
kernel mailing list
kernel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux