selinux/python/audit2allow
Nicolas Iooss 4ac069a3ee python/audit2allow: make the tests useful again
audit2allow testsuite requires a system which uses SELinux with a MLS
policy. This is a lot to ask for a continuous integretation system.
Thankfully this can be worked around by using option -p to run the tools
with a specific configuration. Doing this, the testsuite can even be run
on a system without SELinux.

This approach requires building a custom policy for parsing test.log.
Add a minimal policy written in CIL for this need.

While at it:
* Do not invoke "sudo sepolgen-ifgen" but produce a file in a writable
  directory (instead of /var/lib/sepolgen/interface_info)
* Use sys.executable instead of 'python', in order to really test
  python3 and python2 when calling the test script with one of these
  interpreters.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-01-08 10:15:46 +01:00
..
.gitignore python/audit2allow: make the tests useful again 2019-01-08 10:15:46 +01:00
audit2allow python/audit2allow: allow using audit2why as non-root user 2019-01-07 12:50:45 +01:00
audit2allow.1 python: add xperms support to audit2allow 2018-06-16 10:36:14 +02:00
audit2why Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
audit2why.1 Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
Makefile python/audit2allow: make the tests useful again 2019-01-08 10:15:46 +01:00
sepolgen-ifgen python/audit2allow/sepolgen-ifgen: show errors on stderr 2019-01-07 12:50:45 +01:00
sepolgen-ifgen-attr-helper.c Move policycoreutils/sepolgen-ifgen into python/audit2allow. 2016-11-16 11:19:51 -05:00
test_audit2allow.py python/audit2allow: make the tests useful again 2019-01-08 10:15:46 +01:00
test_dummy_policy.cil python/audit2allow: make the tests useful again 2019-01-08 10:15:46 +01:00
test.log python: add xperms support to audit2allow 2018-06-16 10:36:14 +02:00