selinux/secilc/test
Petr Lautrbach 415989003e secilc: Fix policy optimization test
Commit 692716fc5f ("libsepol/cil: raise default attrs_expand_size to 2") was
reverted and attributes with one type are not expanded anymore.

Fixes:
    ./secilc test/policy.cil
    ./secilc -c 32 -O -M 1 -f /dev/null -o opt-actual.bin test/opt-input.cil
    checkpolicy -b -C -M -o opt-actual.cil opt-actual.bin >/dev/null
    diff test/opt-expected.cil opt-actual.cil
    11a12
    > (typeattribute at01)
    21a23
    > (typeattributeset at01 (tp01))
    25c27,28
    < (allow tp01 self (cl01 (p01a p01b p11a p11b)))
    ---
    > (allow tp01 at01 (cl01 (p11b)))
    > (allow tp01 self (cl01 (p01a p01b p11a)))

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2020-05-15 12:40:13 +02: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: Fix policy optimization test 2020-05-15 12:40:13 +02: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