The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/3] LSM: module hierarchy in /proc/.../attr
@ 2016-06-10 21:21 Casey Schaufler
  2016-06-10 21:25 ` [PATCH v3 1/3] LSM: Add /sys/kernel/security/lsm Casey Schaufler
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Casey Schaufler @ 2016-06-10 21:21 UTC (permalink / raw)
  To: LSM, James Morris
  Cc: John Johansen, Stephen Smalley, Paul Moore, Tetsuo Handa,
	Kees Cook, Casey Schaufler, LKLM

Subject: [PATCH v3 0/3] LSM: module hierarchy in /proc/.../attr

Create interfaces that make it possible to deal with process
attributes in the face of multiple "major" security modules.

Patch 1/3 adds /sys/kernel/security/lsm, which provides
a list of the active security modules on the system.

	$ cat /sys/kernel/security/lsm
	capability,yama,loadpin,smack

Patch 2/3 adds a subdirectory in /proc/.../attr for each
security module that exports process attribute data. This
allows a program in easily differentiate between the "current"
value for Smack and AppArmor.

	$ cat /proc/self/attr/smack/current
	System

	$ cat /proc/self/attr/apparmor/current
	unconfined

Patch 3/3 adds an interface that provides module identified
information that otherwise matches the "current" attr.
This allows a system with multiple modules to provide the
complete security "context" in one place. A (future) system
with both Smack and AppArmor might report:

	$ cat /proc/self/attr/context
	smack='System'apparmor='unconfined'

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>

---
 Documentation/security/LSM.txt |  26 +++++--
 fs/proc/base.c                 |  95 ++++++++++++++++++++---
 fs/proc/internal.h             |   1 +
 include/linux/lsm_hooks.h      |  12 +--
 include/linux/security.h       |  15 ++--
 security/apparmor/lsm.c        |  37 +++++++--
 security/commoncap.c           |   3 +-
 security/inode.c               |  26 ++++++-
 security/loadpin/loadpin.c     |   2 +-
 security/security.c            | 167 ++++++++++++++++++++++++++++++++++++++++-
 security/selinux/hooks.c       |  24 +++++-
 security/smack/smack_lsm.c     |  23 +++---
 security/tomoyo/tomoyo.c       |   2 +-
 security/yama/yama_lsm.c       |   2 +-
 14 files changed, 380 insertions(+), 55 deletions(-)

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

end of thread, other threads:[~2016-06-14 22:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-10 21:21 [PATCH v3 0/3] LSM: module hierarchy in /proc/.../attr Casey Schaufler
2016-06-10 21:25 ` [PATCH v3 1/3] LSM: Add /sys/kernel/security/lsm Casey Schaufler
2016-06-14 18:41   ` Kees Cook
2016-06-14 19:32     ` Casey Schaufler
2016-06-14 22:25   ` David A. Wheeler
2016-06-10 21:25 ` [PATCH v3 2/3] LSM: module hierarchy in /proc/.../attr Casey Schaufler
2016-06-14 18:43   ` Kees Cook
2016-06-14 19:27     ` Casey Schaufler
2016-06-14 21:24       ` Kees Cook
2016-06-10 21:25 ` [PATCH v3 3/3] LSM: Add context interface for proc attr Casey Schaufler
2016-06-14 18:57   ` Kees Cook
2016-06-14 20:19     ` Casey Schaufler
2016-06-14 21:07       ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox