Skip to content

checkpolicy improvements

Christian Göttsche selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13libsepol: avoid implicit conversionslibsepol/src/util.c+1 -10 replies
2/13libsepol: free memory after policy validationlibsepol/src/policydb_validate.c+13 -12 replies
3/13checkpolicy: enclose macro argument in parenthesescheckpolicy/policy_define.c+7 -70 replies
4/13checkpolicy: misc checkmodule tweakscheckpolicy/checkmodule.c+9 -90 replies
5/13checkpolicy: misc checkpolicy tweakscheckpolicy/checkpolicy.c+12 -140 replies
6/13checkpolicy: mark read-only parameters in module compiler constcheckpolicy/module_compiler.c checkpolicy/module_compiler.h+15 -150 replies
7/13checkpolicy: mark file local functions in policy_define staticcheckpolicy/policy_define.c+17 -280 replies
8/13checkpolicy: add missing function declarationscheckpolicy/policy_define.c+4 -10 replies
9/13checkpolicy: resolve dismod memory leakscheckpolicy/test/dismod.c+4 -12 replies
10/13checkpolicy: avoid implicit conversioncheckpolicy/test/dismod.c+1 -10 replies
11/13checkpolicy: error out on parsing too big integerscheckpolicy/policy_parse.y+14 -22 replies
12/13checkpolicy: print warning on source line overflowcheckpolicy/policy_scan.l+18 -70 replies
13/13checkpolicy: free extended permission memorycheckpolicy/policy_define.c+16 -70 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.

PatchJames Carter
SeriesA-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.

Read the v1 thread

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