selinux/secilc/test
Ondrej Mosnacek 87be2fbbd2 secilc: add basic test for policy optimization
Add a simple test for secilc -O to make sure that it produces the
expected output. This might produce some false positives when the output
of secilc/checkpolicy changes slightly, in which case the expected CIL
will need to be updated along with the change.

The test should normally work even with a checkpolicy built from an
older tree, as long as it produces the same CIL output, so it uses the
checkpolicy it finds in PATH by default.

The test policy is taken from an e-mail from James Carter:
https://lore.kernel.org/selinux/CAP+JOzTQQx6aM81QyVe0yoiPJeDU+7xE6nn=0UMAB1EZ_c9ryA@mail.gmail.com/T/

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2020-03-18 13:56:34 -04:00
..
block_test.cil libsepol: Move secilc out of libsepol 2015-03-31 12:31:38 -04:00
bounds.cil secilc: Add a CIL policy file to test bounds checking. 2015-06-22 10:03:16 -04:00
in_test.cil libsepol: Move secilc out of libsepol 2015-03-31 12:31:38 -04:00
integration.cil libsepol: Move secilc out of libsepol 2015-03-31 12:31:38 -04:00
minimum.cil libsepol: Move secilc out of libsepol 2015-03-31 12:31:38 -04:00
name_resolution_test.cil libsepol: Move secilc out of libsepol 2015-03-31 12:31:38 -04:00
neverallow.cil secilc: Add a CIL policy file to test neverallow checking. 2015-06-22 10:03:16 -04:00
opt-expected.cil secilc: add basic test for policy optimization 2020-03-18 13:56:34 -04:00
opt-input.cil secilc: add basic test for policy optimization 2020-03-18 13:56:34 -04:00
optional_test.cil libsepol: Move secilc out of libsepol 2015-03-31 12:31:38 -04:00
policy.cil selinux: Add support for the SCTP portcon keyword 2018-03-19 12:34:29 -04:00