RFC Another take on the kdbus LSM hooks
Get series with b4
b4 am 20150923213043.25616.43422.stgit@localhostVersions newest first
- v1 RFC Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | lsm: introduce hooks for kdbusinclude/ ipc/ ipc/ +2 more | +223 | 4 replies | |
| 2/3 | selinux: introduce kdbus names into the policysecurity/ security/ security/ +1 more | +103 | 0 replies | |
| 3/3 | selinux: introduce kdbus access controlssecurity/ security/ | +123 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH v1 0/3] Another take on the kdbus LSM hooks
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(-)