aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/testsuite/tls3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/testsuite/tls3.sh')
-rwxr-xr-xtrunk/testsuite/tls3.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/trunk/testsuite/tls3.sh b/trunk/testsuite/tls3.sh
index 8d015d9..6bb1f95 100755
--- a/trunk/testsuite/tls3.sh
+++ b/trunk/testsuite/tls3.sh
@@ -10,7 +10,12 @@ case "`uname -m`" in
ia64|ppc*|x86_64|alpha*|s390*|mips*|arm*) SHFLAGS=-fpic;; # Does not support non-pic shared libs
esac
# Disable this test under SELinux if textrel
-test -z "$SHFLAGS" -a -x /usr/sbin/getenforce -a "`/usr/sbin/getenforce`" = Enforcing && exit 77
+if test -z "$SHFLAGS" -a -x /usr/sbin/getenforce; then
+ case "`/usr/sbin/getenforce 2>/dev/null`" in
+ Permissive|Disabled) ;;
+ *) exit 77 ;;
+ esac
+fi
rm -f tls3 tls3lib*.so tls3.log
rm -f prelink.cache
$CC -shared -O2 -fpic -o tls3lib1.so $srcdir/tls1lib1.c