Skip to content

Add support for notself and other to CIL

James Carter selinux 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7libsepol: Changes to ebitmap.h to fix compiler warningslibsepol/include/sepol/policydb/ebitmap.h+2 -20 replies
2/7libsepol/cil: Do not call ebitmap_init twice for an ebitmaplibsepol/cil/src/cil_find.c+31 -290 replies
3/7libsepol/cil: Add notself and other support to CILlibsepol/cil/src/cil.c libsepol/cil/src/cil_binary.c libsepol/cil/src/cil_build_ast.c +4 more+289 -230 replies
4/7libsepol: update CIL generation for trivial not-self ruleslibsepol/src/module_to_cil.c+26 -40 replies
5/7libsepol: Use ERR() instead of log_err()libsepol/src/module_to_cil.c+2 -20 replies
6/7secilc/docs: Add notself and other keywords to CIL documentationsecilc/docs/README.md secilc/docs/cil_access_vector_rules.md secilc/docs/cil_reference_guide.md +1 more+32 -2240 replies
7/7secilc/test: Add notself and other testssecilc/test/notself_and_other.cil+65 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/7 v2] Add support for notself and other to CIL

This patch set adds support for using notself and other in AV rules. See patch 3 for more details.

Patches 1-4, 6-7 are the same as the patches from April 12th, see:
https://lore.kernel.org/selinux/[email protected]/

Patch 5 updates Christian's patch to use ERR() instead of log_err(), see:
https://lore.kernel.org/selinux/[email protected]/

Nothing else has changed.

Christian Göttsche (1):
libsepol: update CIL generation for trivial not-self rules

James Carter (6):
libsepol: Changes to ebitmap.h to fix compiler warnings libsepol/cil: Do not call ebitmap_init twice for an ebitmap libsepol/cil: Add notself and other support to CIL
libsepol: Use ERR() instead of log_err()
secilc/docs: Add notself and other keywords to CIL documentation secilc/test: Add notself and other tests

 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               | 246 ++++++++++++++++++----
 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/ebitmap.h |   4 +-
 libsepol/src/module_to_cil.c              |  30 ++-
 secilc/docs/README.md                     |   1 -
 secilc/docs/cil_access_vector_rules.md    | 244 +++------------------
 secilc/docs/cil_reference_guide.md        |   9 -
 secilc/docs/secil.xml                     |   2 +
 secilc/test/notself_and_other.cil         |  65 ++++++
 14 files changed, 444 insertions(+), 281 deletions(-)
 create mode 100644 secilc/test/notself_and_other.cil
Signature · 1 line
2.41.0