summaryrefslogtreecommitdiff
path: root/tests/misc/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/selinux')
-rwxr-xr-xtests/misc/selinux7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/misc/selinux b/tests/misc/selinux
index b8499842b..3e2aae5e2 100755
--- a/tests/misc/selinux
+++ b/tests/misc/selinux
@@ -12,14 +12,9 @@ fi
. $srcdir/../envvar-check
. $srcdir/../lang-default
+. $srcdir/../selinux
PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-test "`ls -Zd .`" = '? .' &&
- {
- echo "$0: skipping this test; this system lacks SELinux support" 1>&2
- exit 77
- }
-
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0