Fix bugs related to policy declarations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Fix problem with bounds statements in optional blockscheckpolicy/ libsepol/ libsepol/ | +38 | 0 replies | |
| 2/6 | Provide a better error message for implicit role and user boundscheckpolicy/ | +8 | 0 replies | |
| 3/6 | Fix an error in the policyd validation of user datumslibsepol/ | +5 | 0 replies | |
| 4/6 | libsepol: Fix processing of levels for user rule in an optional blocklibsepol/ | +8 | 0 replies | |
| 5/6 | libsepol: Fix problem with handling type attributes in role-types rulelibsepol/ | +122 | 0 replies | |
| 6/6 | libsepol: Expand role attributes when expanding instead of when linkinglibsepol/ libsepol/ | +126 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Fix bugs related to policy declarations
In testing an upcoming patch to allow type attributes to be associated with other type attributes and expanding them before creating the kernel policy, I came across a bug in how type attributes were handled in role- type statements. This caused me to take a closer look at how declarations and the things associated to them were being handled.
With these patches, I feel that the code in link.c and expand.c is clearer and more robust.
James Carter (6):
Fix problem with bounds statements in optional blocks Provide a better error message for implicit role and user bounds Fix an error in the policyd validation of user datums
libsepol: Fix processing of levels for user rule in an optional block
libsepol: Fix problem with handling type attributes in role-types rule
libsepol: Expand role attributes when expanding instead of when
linking
checkpolicy/module_compiler.c | 34 +-- checkpolicy/policy_define.c | 11 +- libsepol/src/expand.c | 396 +++++++++++++++++++------------ libsepol/src/link.c | 153 ++---------- libsepol/src/module_to_cil.c | 23 +- libsepol/src/policydb_validate.c | 5 + 6 files changed, 296 insertions(+), 326 deletions(-)
Signature · 1 line
2.50.0