diff options
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/chcon.sh | 1 | ||||
-rwxr-xr-x | tests/misc/selinux.sh | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/misc/chcon.sh b/tests/misc/chcon.sh index bd40fbc7d..c99021907 100755 --- a/tests/misc/chcon.sh +++ b/tests/misc/chcon.sh @@ -21,6 +21,7 @@ print_ver_ chcon require_root_ require_selinux_ skip_if_mcstransd_is_running_ +mls_enabled_ || skip_ 'MLS is disabled' mkdir -p d/sub/s2 || framework_failure_ touch f g d/sub/1 d/sub/2 || framework_failure_ diff --git a/tests/misc/selinux.sh b/tests/misc/selinux.sh index a9515680a..28c05c4f8 100755 --- a/tests/misc/selinux.sh +++ b/tests/misc/selinux.sh @@ -30,7 +30,8 @@ mkfifo_or_skip_ p # special context that works both with and without mcstransd -ctx=root:object_r:tmp_t:s0 +ctx='root:object_r:tmp_t' +mls_enabled_ && ctx="$ctx:s0" chcon $ctx f d p || skip_ '"chcon '$ctx' ..." failed' |