Fix/add optional file type handling for genfscon rules
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 1 replyIn review
- v14 patches 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | libsepol: Add support for file types in writing out policy.conflibsepol/ | +33 | 1 reply | |
| 2/5 | libsepol/cil: Refactor filecon file type handlinglibsepol/ libsepol/ libsepol/ +1 more | +29 | 0 replies | |
| 3/5 | libsepol/cil: Allow optional file type in genfscon ruleslibsepol/ libsepol/ libsepol/ +2 more | +105 | 0 replies | |
| 4/5 | secilc/docs: Document the optional file type for genfscon rulessecilc/ | +8 | 0 replies | |
| 5/5 | libsepol: Write out genfscon file type when writing out CIL policylibsepol/ libsepol/ | +59 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH 0/5 v2] Fix/add optional file type handling for genfscon rules
genfscon rules have always supported an optional file type, but when the ability for writing a policy.conf file from a kernel policy was added to libsepol it did not include that support. Support for the optional file type was also left out of CIL genfscon rules.
This patch set fixes these problems.
Patch 1 adds support for writing the optional file type in genfscon rules when writing a policy.conf file from a kernel policy.
Patches 2-5 adds support in CIL for handling an optional file type in genfscon rules, updates the CIL documentation, and adds support when writing out CIL from a kernel policy or module as well.
James Carter (5):
libsepol: Add support for file types in writing out policy.conf libsepol/cil: Refactor filecon file type handling libsepol/cil: Allow optional file type in genfscon rules secilc/docs: Document the optional file type for genfscon rules
libsepol: Write out genfscon file type when writing out CIL policy
libsepol/cil/src/cil.c | 6 ++- libsepol/cil/src/cil_binary.c | 37 +++++++++++++ libsepol/cil/src/cil_build_ast.c | 49 +++++++++++++++--- libsepol/cil/src/cil_internal.h | 5 +- libsepol/cil/src/cil_write_ast.c | 57 +++++++++++++++++---- libsepol/src/kernel_to_cil.c | 35 ++++++++++++- libsepol/src/kernel_to_conf.c | 35 ++++++++++++- libsepol/src/module_to_cil.c | 27 +++++++++- secilc/docs/cil_file_labeling_statements.md | 10 +++- 9 files changed, 234 insertions(+), 27 deletions(-)
Signature · 1 line
2.31.1