Skip to content

RFC libsepol: Adding support for not-self rules

James Carter selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libsepol: Add not self support for neverallow ruleslibsepol/include/sepol/policydb/policydb.h libsepol/src/assertion.c+120 -270 replies
2/2libsepol/cil: Add notself and minusself support to CILlibsepol/cil/src/cil.c libsepol/cil/src/cil_binary.c libsepol/cil/src/cil_build_ast.c +4 more+300 -300 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchChristian Göttsche
SeriesT-b
1/2
2/2

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 0/2 RFC] libsepol: Adding support for not-self rules

These patches depend on the 16 patch set that refactors and fixes assertion checking.

The first patch is based on patches by Christian Göttsche <[email protected]> sent to the list on November 23rd. His patch adding support to checkpolicy is meant to be used with these patches.

The second patch adds support for not-self rules to CIL. Currently, it works for all access vector rules, but I am not sure if that is needed or wise.

James Carter (2):
libsepol: Add not self support for neverallow rules libsepol/cil: Add notself and minusself support to CIL

 libsepol/cil/src/cil.c                     |  12 ++
 libsepol/cil/src/cil_binary.c              |  91 ++++++++-
 libsepol/cil/src/cil_build_ast.c           |  10 +-
 libsepol/cil/src/cil_find.c                | 206 ++++++++++++++++++---
 libsepol/cil/src/cil_internal.h            |   4 +
 libsepol/cil/src/cil_resolve_ast.c         |   4 +
 libsepol/cil/src/cil_verify.c              |   3 +-
 libsepol/include/sepol/policydb/policydb.h |   3 +-
 libsepol/src/assertion.c                   | 144 +++++++++++---
 9 files changed, 467 insertions(+), 64 deletions(-)
Signature · 1 line
2.31.1