selinux/checkpolicy/test
Juraj Marcin c39ebd07ac checkpolicy,libsepol: add prefix/suffix support to module policy
This patch extends the structures for module and base policy (avrule_t)
to support prefix/suffix transitions. In addition to this, it implements
the necessary changes to functions for reading and writing the binary
policy, as well as parsing the policy conf.

Syntax of the new prefix/suffix filename transition rule:

    type_transition source_type target_type : class default_type object_name match_type;

where match_type is either keyword "prefix" or "suffix"

Examples:

    type_transition ta tb:CLASS01 tc "file01" prefix;
    type_transition td te:CLASS01 tf "file02" suffix;

Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Juraj Marcin <juraj@jurajmarcin.com>
Acked-by: James Carter <jwcart2@gmail.com>
2023-07-12 12:58:25 -04:00
..
.gitignore Repo: update .gitignore 2011-08-02 13:31:51 -04:00
dismod.c checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
dispol.c checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
Makefile checkpolicy: drop -pipe compile option 2021-07-13 21:02:04 +02:00