1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

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.
This commit is contained in:
Jim Meyering
2007-10-09 15:48:51 +02:00
parent 4597f40b7f
commit 3e53920470
2 changed files with 6 additions and 1 deletions

View File

@@ -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.

View File

@@ -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