Skip to content

Refactor and fix assertion checking

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 Latest16 patches 2 repliesIn review
  2. v116 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16libsepol: Return an error if check_assertion() returns an error.libsepol/src/assertion.c+4 -00 replies
2/16libsepol: Change label in check_assertion_avtab_match()libsepol/src/assertion.c+6 -60 replies
3/16libsepol: Remove uneeded error messages in assertion checkinglibsepol/src/assertion.c+0 -60 replies
4/16libsepol: Check for error from check_assertion_extended_permissions()libsepol/src/assertion.c+2 -00 replies
5/16libsepol: Use consistent return checking stylelibsepol/src/assertion.c+5 -50 replies
6/16libsepol: Move check of target types to before check for selflibsepol/src/assertion.c+19 -170 replies
7/16libsepol: Create function check_assertion_self_match() and use itlibsepol/src/assertion.c+30 -150 replies
8/16libsepol: Use (rc < 0) instead of (rc) when calling ebitmap functionslibsepol/src/assertion.c+24 -200 replies
9/16libsepol: Remove unnessesary check for matching classlibsepol/src/assertion.c+5 -100 replies
10/16libsepol: Move assigning outer loop index out of inner looplibsepol/src/assertion.c+2 -20 replies
11/16libsepol: Make use of previously created ebitmap when checking selflibsepol/src/assertion.c+5 -150 replies
12/16libsepol: Refactor match_any_class_permissions() to be clearerlibsepol/src/assertion.c+3 -60 replies
13/16libsepol: Make return value clearer when reporting neverallowx errorslibsepol/src/assertion.c+6 -70 replies
14/16libsepol: The src and tgt must be the same if neverallow uses selflibsepol/src/assertion.c+8 -20 replies
15/16libsepol: Set args avtab pointer when reporting assertion violationslibsepol/src/assertion.c+2 -00 replies
16/16libsepol: Fix two problems with neverallowxperm reportinglibsepol/src/assertion.c+4 -30 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/16 v2] Refactor and fix assertion checking

The first 13 patches refactor and cleanup the neverallow and neverallowxperm checking code to make it easier to understand.

The last 3 patches fixes errors in the assertion checking code.

This series is to prepare for adding not-self support to assertion checking.

The only change for version 2 is in patch 7 where target_type should have been used instead of source_type.

James Carter (16):
libsepol: Return an error if check_assertion() returns an error.
libsepol: Change label in check_assertion_avtab_match()
libsepol: Remove uneeded error messages in assertion checking
libsepol: Check for error from check_assertion_extended_permissions()
libsepol: Use consistent return checking style
libsepol: Move check of target types to before check for self
libsepol: Create function check_assertion_self_match() and use it
libsepol: Use (rc < 0) instead of (rc) when calling ebitmap functions
libsepol: Remove unnessesary check for matching class
libsepol: Move assigning outer loop index out of inner loop
libsepol: Make use of previously created ebitmap when checking self
libsepol: Refactor match_any_class_permissions() to be clearer
libsepol: Make return value clearer when reporting neverallowx errors
libsepol: The src and tgt must be the same if neverallow uses self
libsepol: Set args avtab pointer when reporting assertion violations
libsepol: Fix two problems with neverallowxperm reporting

 libsepol/src/assertion.c | 193 +++++++++++++++++++++------------------
 1 file changed, 102 insertions(+), 91 deletions(-)
Signature · 1 line
2.31.1