summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-09 15:48:51 +0200
committerJim Meyering <meyering@redhat.com>2007-10-09 15:49:00 +0200
commit3e53920470cf343c8c1db9a944af5ed0e137c54d (patch)
treea57424012a82a5609fbe710f70ecb7abb85a1aee
parent4597f40b7fa6f93ec798a6f0143b51c1e555a837 (diff)
downloadcoreutils-3e53920470cf343c8c1db9a944af5ed0e137c54d.tar.xz
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.
-rw-r--r--ChangeLog5
-rwxr-xr-xtests/misc/runcon-no-reorder2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 792be8312..bb5ece986 100644
--- 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.
diff --git a/tests/misc/runcon-no-reorder b/tests/misc/runcon-no-reorder
index 0fda3b442..a395e10f8 100755
--- a/tests/misc/runcon-no-reorder
+++ b/tests/misc/runcon-no-reorder
@@ -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