Skip to content

Various CIL patches

James Carter selinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 1 replyIn review
  2. v110 of 11 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Remove redundant parenthesis from patch 7 "Exit with an error if declaration name is a reserved word" to satisfy clang

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11libsepol/cil: Fix out-of-bound read of file context pattern ending with "\"libsepol/cil/src/cil_post.c+7 -00 replies
2/11libsepol/cil: Destroy classperms list when resetting classpermissionlibsepol/cil/src/cil_reset_ast.c+1 -10 replies
3/11libsepol/cil: Destroy classperm list when resetting map permslibsepol/cil/src/cil_reset_ast.c+1 -10 replies
4/11libsepol/cil: cil_reset_classperms_set() should not reset classpermissionlibsepol/cil/src/cil_reset_ast.c+5 -10 replies
5/11libsepol/cil: Set class field to NULL when resetting struct cil_classpermslibsepol/cil/src/cil_reset_ast.c+1 -00 replies
6/11libsepol/cil: More strict verification of constraint leaf expressionslibsepol/cil/src/cil_verify.c+7 -10 replies
7/11libsepol/cil: Exit with an error if declaration name is a reserved wordlibsepol/cil/src/cil_build_ast.c libsepol/cil/src/cil_verify.c libsepol/cil/src/cil_verify.h+54 -280 replies
8/11libsepol/cil: Allow permission expressions when using map classeslibsepol/cil/src/cil_post.c+4 -00 replies
9/11libsepol/cil: Refactor helper function for cil_gen_node()libsepol/cil/src/cil_build_ast.c+10 -170 replies
10/11libsepol/cil: Create function cil_add_decl_to_symtab() and refactorlibsepol/cil/src/cil_build_ast.c libsepol/cil/src/cil_build_ast.h libsepol/cil/src/cil_copy_ast.c+45 -260 replies
11/11libsepol/cil: Move check for the shadowing of macro parameterslibsepol/cil/src/cil_build_ast.c libsepol/cil/src/cil_copy_ast.c libsepol/cil/src/cil_verify.c +1 more+26 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 00/11 v2] Various CIL patches

All of these patches (except the first) have been sent to the list in the last month. The first patch is a slight modification of an earlier patch sent by Nicolas Iooss. I also corrected a couple of whitespace errors and updated one patch that would not apply cleanly with one of the earlier patches applied.

v2:
- Remove redundant parenthesis from patch 7 "Exit with an error if declaration name is a reserved word" to satisfy clang

James Carter (11):
libsepol/cil: Fix out-of-bound read of file context pattern ending

    with "\"

libsepol/cil: Destroy classperms list when resetting classpermission libsepol/cil: Destroy classperm list when resetting map perms libsepol/cil: cil_reset_classperms_set() should not reset
classpermission
libsepol/cil: Set class field to NULL when resetting struct
cil_classperms
libsepol/cil: More strict verification of constraint leaf expressions libsepol/cil: Exit with an error if declaration name is a reserved
word
libsepol/cil: Allow permission expressions when using map classes libsepol/cil: Refactor helper function for cil_gen_node() libsepol/cil: Create function cil_add_decl_to_symtab() and refactor libsepol/cil: Move check for the shadowing of macro parameters

 libsepol/cil/src/cil_build_ast.c | 132 ++++++++++++-------------------
 libsepol/cil/src/cil_build_ast.h |   2 +
 libsepol/cil/src/cil_copy_ast.c  |  26 +++---
 libsepol/cil/src/cil_post.c      |  11 +++
 libsepol/cil/src/cil_reset_ast.c |  11 ++-
 libsepol/cil/src/cil_verify.c    |  78 +++++++++++++++++-
 libsepol/cil/src/cil_verify.h    |   3 +-
 7 files changed, 160 insertions(+), 103 deletions(-)
Signature · 1 line
2.26.3