Nicolas Iooss
be2f82f670
tests: support non-MLS enabled SELinux systems
...
When running "make check" on a Linux system running SELinux with a
non-MLS policy, tests/mkdir/restorecon.sh test fails with:
chcon: invalid context: root:object_r:tmp_t:s0: Invalid argument
Indeed in such a configuration, contexts cannot have ":s0" suffix.
* init.cfg (get_selinux_type): Refactor this function to here
from various tests. Update to work with a non-MLS policy.
(mls_enabled_): A new function to detect if MLS is enabled.
(skip_if_mcstransd_is_running_): Update to not skip when
MLS is not enabled.
* tests/mkdir/restorecon.sh: Use a valid non-MLS context when needed.
* tests/install/install-Z-selinux.sh: Likewise.
* tests/cp/cp-a-selinux.sh: Likewise.
* tests/misc/selinux.sh: Likewise.
* tests/misc/chcon.sh: Skip if non-MLS as --range used throughout.
Fixes http://bugs.gnu.org/22631
2016-12-18 20:03:59 +00:00
..
2016-01-01 14:10:41 +00:00
2016-11-27 01:20:09 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-10 01:51:27 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-12-18 20:03:59 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 08:26:19 -08:00
2016-01-01 14:10:41 +00:00
2016-11-22 22:03:47 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:34:18 +01:00
2016-01-13 10:59:56 +00:00
2016-09-08 01:00:23 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-16 01:58:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 08:26:19 -08:00
2016-11-13 08:26:19 -08:00
2016-08-09 11:31:00 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-12-08 10:10:38 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-18 18:29:47 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 17:09:57 -08:00
2016-01-13 10:59:55 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-15 14:14:06 +00:00
2016-01-01 14:10:41 +00:00
2016-11-29 21:21:12 +00:00
2016-11-22 20:04:24 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-10-26 20:42:30 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 08:26:19 -08:00
2016-11-13 17:09:57 -08:00
2016-05-14 12:41:43 +01:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 11:11:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-22 20:04:25 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-30 15:50:59 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-12-18 20:03:59 +00:00
2016-07-02 18:08:33 -04:00
2016-04-24 18:19:50 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-14 12:39:28 +02:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-19 16:08:59 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-26 15:38:08 -08:00
2016-04-21 19:41:58 +01:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-05-31 21:29:52 -04:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-15 21:29:10 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-01 14:10:41 +00:00
2016-11-07 17:12:39 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 17:09:57 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-06 15:20:49 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-11-13 17:09:57 -08:00
2016-11-28 13:19:24 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:56 +00:00
2016-02-23 01:05:10 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-09-19 12:48:32 -07:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-04-21 19:41:58 +01:00
2016-11-13 08:26:19 -08:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-08-09 11:31:00 +01:00
2016-01-01 14:10:41 +00:00
2016-01-13 10:59:18 +00:00
2016-01-01 14:10:41 +00:00
2016-01-13 11:11:36 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-01-01 14:10:41 +00:00
2016-06-24 01:09:28 +01:00