All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/3] Another take on the kdbus LSM hooks
@ 2015-09-23 21:44 Paul Moore
  2015-09-23 21:44 ` [RFC PATCH v1 1/3] lsm: introduce hooks for kdbus Paul Moore
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Paul Moore @ 2015-09-23 21:44 UTC (permalink / raw)
  To: Paul Osmialowski, linux-security-module, Lukasz Pawelczyk,
	selinux

A different take on the previous kdbus LSM hooks, intended to be much
simpler and more in line with what we currently do for binder and
other IPC mechanisms.  This patchset has three patches, the first
patch contains the LSM hooks and the last two patches are SELinux
specific implementations of those hooks.  Paul/Lukasz, please take a
look and see if this simplified set of hooks works for you; I'm hoping
it will.

This patchset is based of Greg's char-misc#kdbus tree which is a
little out of date with respect to LSM development, but that shouldn't
be a problem at this early stage of review.

I've intentionally only sent this to the SELinux and LSM list for the
time being; once we resolve our own concerns with the different
approaches we can start including the kdbus developers and other
relevant lists.  I'm also hoping that once we have a patchset which
contains the necessary SELinux/Smack/etc. support we can push this to
Greg for inclusion in the kdbus branch so we have at least some
kdbus/LSM support if/when kdbus is ever merged into Linus' tree.

You can find these patches in the working-kdbus-v1 branch of the
SELinux tree:

 * git://git.infradead.org/users/pcmoore/selinux

---

Paul Moore (3):
      lsm: introduce hooks for kdbus
      selinux: introduce kdbus names into the policy
      selinux: introduce kdbus access controls


 include/linux/security.h            |  113 +++++++++++++++++++++++++++++++++
 ipc/kdbus/connection.c              |   73 ++++++++++++++-------
 ipc/kdbus/message.c                 |   19 ++++-
 ipc/kdbus/metadata.c                |    6 +-
 security/security.c                 |   45 +++++++++++++
 security/selinux/hooks.c            |  121 ++++++++++++++++++++++++++++++++++-
 security/selinux/include/classmap.h |    4 +
 security/selinux/include/security.h |    6 +-
 security/selinux/ss/policydb.c      |   59 +++++++++++++++++
 security/selinux/ss/policydb.h      |    3 +
 security/selinux/ss/services.c      |   38 +++++++++++
 11 files changed, 449 insertions(+), 38 deletions(-)

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

end of thread, other threads:[~2015-09-25 22:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23 21:44 [RFC PATCH v1 0/3] Another take on the kdbus LSM hooks Paul Moore
2015-09-23 21:44 ` [RFC PATCH v1 1/3] lsm: introduce hooks for kdbus Paul Moore
2015-09-24 15:57   ` Stephen Smalley
2015-09-25 22:09     ` Paul Moore
2015-09-24 18:01   ` Stephen Smalley
2015-09-25 22:17     ` Paul Moore
2015-09-23 21:44 ` [RFC PATCH v1 2/3] selinux: introduce kdbus names into the policy Paul Moore
2015-09-23 21:44 ` [RFC PATCH v1 3/3] selinux: introduce kdbus access controls Paul Moore

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.