selinux/secilc/test
James Carter 4a60fd78d2 secilc/test: Add test for anonymous args
CIL has rules that allow names to be assigned to certain objects
like MLS category sets, MLS levels, MLS ranges, IP addresses, and
class permission sets. These objects can also be named as parameters
for a macro. A call may pass in a name for one of these objects, but
it also may pass in one of the actual objects. These objects are
referred as anonymous arguments.

Add CIL policy that can be used to test whether or not anonymous
arguments are being handled properly in macros. Also test the
equivalent named arguments to help determine if the problem is with
that argument type or just with an anonymous argument of that type.

The anonymouse arguments that are tested are categoryset, level,
levelrange, ipaddr, and classpermission.

Signed-off-by: James Carter <jwcart2@gmail.com>
Acked-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2021-06-22 09:33:28 -04:00
..
anonymous_arg_test.cil secilc/test: Add test for anonymous args 2021-06-22 09:33:28 -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: 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