diff options
Diffstat (limited to 'testsuite/inplace-selinux.sh')
-rwxr-xr-x | testsuite/inplace-selinux.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/inplace-selinux.sh b/testsuite/inplace-selinux.sh index a560764..6dacf12 100755 --- a/testsuite/inplace-selinux.sh +++ b/testsuite/inplace-selinux.sh @@ -18,6 +18,11 @@ print_ver_ sed require_selinux_ +sed --version | grep -q "with SELinux" \ + || skip_ "sed built without SELinux support" +sed --version | grep -q "^SELinux is enabled" \ + || skip_ "sed reports SELinux is disabled on this system" + touch a || framework_failure_ chcon -u system_u a || skip_ "chcon doesn't work" chcon -u user_u a || skip_ "chcon doesn't work" |