]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Make the runcon-no-reorder test slightly more general.
authorJim Meyering <meyering@redhat.com>
Tue, 9 Oct 2007 13:48:51 +0000 (15:48 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 9 Oct 2007 13:49:00 +0000 (15:49 +0200)
* tests/misc/runcon-no-reorder: Don't hard-code "unconstrained_t".
Use slightly more general "runcon $(id -Z)".
Suggestion from Stephen Smalley.

ChangeLog
tests/misc/runcon-no-reorder

index 792be83127a5d04fa342f0cc5ae7557684b4967a..bb5ece9864c6fe8adde57cd503c053aabbdcdd6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-10-09  Jim Meyering  <meyering@redhat.com>
 
+       Make the runcon-no-reorder test slightly more general.
+       * tests/misc/runcon-no-reorder: Don't hard-code "unconstrained_t".
+       Use slightly more general "runcon $(id -Z)".
+       Suggestion from Stephen Smalley.
+
        Skip the chcon test on a system with no SELinux support.
        * tests/test-lib.sh (require_selinux_): New function.
        * tests/misc/chcon: Use it.
index 0fda3b442af5a13819152f177d4fdf697d1d80de..a395e10f819014f6794c7d5f134ead6cff5afb1f 100755 (executable)
@@ -34,7 +34,7 @@ fail=0
 # On such a system it fails with the above diagnostic, which is fine.
 # Before the no-reorder change, it would have failed with a diagnostic
 # about -j being an invalid option.
-runcon -t unconfined_t true -j 2> out && : > exp
+runcon $(id -Z) true -j 2> out && : > exp
 
 compare out exp || fail=1