platform_external_selinux/sandbox
Nicolas Iooss 945bc8853b sandbox: make test not fail on systems without SELinux
On systems without SELinux (eg. some continuous integration
environments), "make test" fails with:

    Traceback (most recent call last):
      File "test_sandbox.py", line 110, in <module>
        if selinux.security_getenforce() == 1:
    FileNotFoundError: [Errno 2] No such file or directory

This is exception is thrown because the selinuxfs file system is not
mounted.

Detect such configurations using selinux.is_selinux_enabled() and skip
the test when SELinux is disabled accordingly.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2016-11-17 16:44:57 -05:00
..
.gitignore Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandbox Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandbox.5 Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandbox.8 Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandbox.conf Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandbox.config Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandbox.init Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
sandboxX.sh Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
seunshare.8 Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
seunshare.c Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
start Move policycoreutils/sandbox to sandbox. 2016-11-16 11:19:50 -05:00
test_sandbox.py sandbox: make test not fail on systems without SELinux 2016-11-17 16:44:57 -05:00
VERSION Add VERSION files for new components 2016-11-16 11:19:51 -05:00