checkpolicy improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | libsepol: avoid implicit conversionslibsepol/ | +1 | 0 replies | |
| 2/13 | libsepol: free memory after policy validationlibsepol/ | +13 | 2 replies | |
| 3/13 | checkpolicy: enclose macro argument in parenthesescheckpolicy/ | +7 | 0 replies | |
| 4/13 | checkpolicy: misc checkmodule tweakscheckpolicy/ | +9 | 0 replies | |
| 5/13 | checkpolicy: misc checkpolicy tweakscheckpolicy/ | +12 | 0 replies | |
| 6/13 | checkpolicy: mark read-only parameters in module compiler constcheckpolicy/ checkpolicy/ | +15 | 0 replies | |
| 7/13 | checkpolicy: mark file local functions in policy_define staticcheckpolicy/ | +17 | 0 replies | |
| 8/13 | checkpolicy: add missing function declarationscheckpolicy/ | +4 | 0 replies | |
| 9/13 | checkpolicy: resolve dismod memory leakscheckpolicy/ | +4 | 2 replies | |
| 10/13 | checkpolicy: avoid implicit conversioncheckpolicy/ | +1 | 0 replies | |
| 11/13 | checkpolicy: error out on parsing too big integerscheckpolicy/ | +14 | 2 replies | |
| 12/13 | checkpolicy: print warning on source line overflowcheckpolicy/ | +18 | 0 replies | |
| 13/13 | checkpolicy: free extended permission memorycheckpolicy/ | +16 | 0 replies |
Reviews trailers per patch
None of the 13 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | James Carter |
|---|---|
| Series | A-b |
| 1/13 | |
| 2/13 | |
| 3/13 | |
| 4/13 | |
| 5/13 | |
| 6/13 | |
| 7/13 | |
| 8/13 | |
| 9/13 | |
| 10/13 | |
| 11/13 | |
| 12/13 | |
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/13] checkpolicy improvements
Miscellaneous improvements to the checkpolicy subproject, affecting the traditional language compilers checkmodule(8) and checkpolicy(8).
Avoid implicit conversions, free leaked memory, resolve several compiler warnings, use strict integer parsing.
The last patch is an adoption of a patch proposed by liwugang [1], with the requested changes integrated.
[1]: https://patchwork.kernel.org/project/selinux/patch/[email protected]/
Christian Göttsche (13):
libsepol: avoid implicit conversions
libsepol: free memory after policy validation
checkpolicy: enclose macro argument in parentheses
checkpolicy: misc checkmodule tweaks
checkpolicy: misc checkpolicy tweaks
checkpolicy: mark read-only parameters in module compiler const
checkpolicy: mark file local functions in policy_define static
checkpolicy: add missing function declarations
checkpolicy: resolve dismod memory leaks
checkpolicy: avoid implicit conversion
checkpolicy: error out on parsing too big integers
checkpolicy: print warning on source line overflow
checkpolicy: free extended permission memory
checkpolicy/checkmodule.c | 18 +++---- checkpolicy/checkpolicy.c | 26 +++++----- checkpolicy/module_compiler.c | 26 +++++----- checkpolicy/module_compiler.h | 4 +- checkpolicy/policy_define.c | 87 ++++++++++++++++---------------- checkpolicy/policy_parse.y | 16 +++++- checkpolicy/policy_scan.l | 25 ++++++--- checkpolicy/test/dismod.c | 7 ++- libsepol/src/policydb_validate.c | 14 ++++- libsepol/src/util.c | 2 +- 10 files changed, 131 insertions(+), 94 deletions(-)
Signature · 1 line
2.33.0