commit | baee7238b82908663d07cc025996895380abe70b | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sat Jan 14 15:40:24 2017 +0100 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Tue Jan 17 16:48:46 2017 -0500 |
tree | 49dfc36665750fdc628077ffbcc98b39f37985cb | |
parent | 5b0ad2f00ec730b86eb871d30cb98661dc7a6554 [diff] |
semanage, sepolicy: make tests not fail on systems without SELinux selinux.security_getenforce() triggers an exception when running tests on systems without SELinux. In order to skip tests which need SELinux in enforcing mode, test selinux.is_selinux_enabled() too, like commit 945bc8853b62 ("sandbox: make test not fail on systems without SELinux"). Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>