mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-17 10:50:43 +00:00
799ef8b66e
Duplicate declarations are allowed for type, typeattribute, and optional statements. When an allowed duplicate declaration is found, the duplicate datum is free'd in cil_add_decl_to_symtab() and SEPOL_OK is returned. This works for all the rules where a duplicate declaration is allowed, but it confuses scanning tools. When cil_add_decl_to_symtab() finds an allowed duplicate declaration, return SEPOL_EEXIST and free the duplicate datum in the original calling function. Signed-off-by: James Carter <jwcart2@gmail.com> Acked-by: Petr Lautrbach <plautrba@redhat.com> |
||
---|---|---|
.. | ||
include/cil | ||
src | ||
test | ||
.gitignore |