selinux/checkpolicy
Juraj Marcin 1174483d29 checkpolicy,libsepol: add prefix/suffix support to kernel policy
Currently, filename type transitions support only exact name matching.
However, in practice, the names contain variable parts. This leads to
many duplicated rules in the policy that differ only in the part of the
name, or it is even impossible to cover all possible combinations.

This patch extends the filename type transitions structures to include
new types of filename transitions - prefix and suffix filename
transitions. It also implements the reading and writing of those rules
in the kernel binary policy format together with increasing its version.

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:24 -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 kernel policy 2023-07-12 12:58:24 -04:00
.gitignore Repo: update .gitignore 2011-08-02 13:31:51 -04:00
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: move filename transition rules to avrule 2023-07-12 12:58:19 -04:00
policy_define.h checkpolicy,libsepol: move filename transition rules to avrule 2023-07-12 12:58:19 -04:00
policy_parse.y checkpolicy,libsepol: move filename transition rules to avrule 2023-07-12 12:58:19 -04:00
policy_scan.l checkpolicy: drop unused token CLONE 2023-06-05 15:16:57 -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