All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH userspace 0/2] Support the 'self' keyword in type transitions
@ 2022-04-22 15:43 Ondrej Mosnacek
  2022-04-22 15:43 ` [PATCH userspace 1/2] libsepol/cil: add support for self " Ondrej Mosnacek
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ondrej Mosnacek @ 2022-04-22 15:43 UTC (permalink / raw)
  To: selinux; +Cc: Dominick Grift

With the addition of the anon_inode class in the kernel, 'self'
transition rules became useful, but haven't been implemented.

This series implements the self keyword support in the CIL & TE
languages and the module policydb format. The kernel policydb format
doesn't need any changes, as type transitions are always expanded in the
kernel policydb.

The patches have been tested using the following WIP beakerlib/tmt test:
https://src.fedoraproject.org/fork/omos/tests/selinux/blob/self-in-tt/f/libsepol/self-keyword-in-type-transitions

Ondrej Mosnacek (2):
  libsepol/cil: add support for self keyword in type transitions
  libsepol,checkpolicy: add support for self keyword in type transitions

 checkpolicy/policy_define.c                |  42 +++++-
 libsepol/cil/src/cil_binary.c              | 168 +++++++++++++++------
 libsepol/cil/src/cil_resolve_ast.c         |  25 ++-
 libsepol/include/sepol/policydb/policydb.h |   4 +-
 libsepol/src/expand.c                      |  69 ++++++---
 libsepol/src/link.c                        |   1 +
 libsepol/src/module_to_cil.c               |  30 ++--
 libsepol/src/policydb.c                    |  33 +++-
 libsepol/src/write.c                       |  19 ++-
 secilc/test/policy.cil                     |   3 +
 10 files changed, 293 insertions(+), 101 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-04-25 11:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 15:43 [PATCH userspace 0/2] Support the 'self' keyword in type transitions Ondrej Mosnacek
2022-04-22 15:43 ` [PATCH userspace 1/2] libsepol/cil: add support for self " Ondrej Mosnacek
2022-04-22 15:43 ` [PATCH userspace 2/2] libsepol,checkpolicy: " Ondrej Mosnacek
2022-04-22 17:02   ` Dominick Grift
2022-04-23  7:42   ` Christian Göttsche
2022-04-25 11:32     ` Ondrej Mosnacek
2022-04-23  7:52 ` [PATCH userspace 0/2] Support the 'self' " Christian Göttsche
2022-04-25 11:29   ` Ondrej Mosnacek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.