selinux/checkpolicy
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
..
ru checkpolicy: Minor tweaks to the names of the contributors to the manpages 2020-06-04 16:06:25 -04:00
test checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
.gitignore
checkmodule.8 checkpolicy: add option to skip checking neverallow rules 2023-06-30 11:53:44 +02:00
checkmodule.c checkpolicy,libsepol: move filename transitions to avtab 2023-07-12 12:58:17 -04:00
checkpolicy.8 checkpolicy: add option to skip checking neverallow rules 2023-06-30 11:53:44 +02:00
checkpolicy.c checkpolicy,libsepol: move filename transition rules to avrule 2023-07-12 12:58:19 -04:00
checkpolicy.h checkpolicy: remove unused te_assertions 2020-01-27 10:51:21 -05:00
LICENSE docs: provide a top level LICENSE file 2022-10-05 08:20:38 -04:00
Makefile checkpolicy: drop -pipe compile option 2021-07-13 21:02:04 +02:00
module_compiler.c checkpolicy,libsepol: move filename transition rules to avrule 2023-07-12 12:58:19 -04:00
module_compiler.h checkpolicy,libsepol: move filename transition rules to avrule 2023-07-12 12:58:19 -04:00
parse_util.c libsepol: Populate and use policy name 2022-02-24 10:44:46 -05:00
parse_util.h
policy_define.c checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
policy_define.h checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
policy_parse.y checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
policy_scan.l checkpolicy,libsepol: add prefix/suffix support to module policy 2023-07-12 12:58:25 -04:00
queue.c checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
queue.h checkpolicy,libselinux,libsepol,policycoreutils: Update my email address 2017-08-17 14:17:12 -04:00
VERSION Update VERSIONs to 3.5 for release. 2023-02-23 05:16:11 -08:00