Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1431001

[PATCH v5 0/3] LSM: security module information improvements

From Casey Schaufler <casey@schaufler-ca.com>
Newsgroups linux.kernel
Subject [PATCH v5 0/3] LSM: security module information improvements
Date 2016-06-25 01:30 +0200
Message-ID <rNIHT-6dD-5@gated-at.bofh.it> (permalink)
References (1 earlier) <rNkcx-7lw-17@gated-at.bofh.it> <rNENX-3Oe-1@gated-at.bofh.it> <rNFAl-4mG-11@gated-at.bofh.it> <rNFAl-4mG-9@gated-at.bofh.it> <rNFTI-4ti-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Subject: [PATCH v5 0/3] LSM: security module information improvements

Changes from v4:
	Use kasprintf instead of kzalloc() ... sprintf in more places.
	More in the documentation.
	Separate module information in contexts with ",". (not yet visible)

Changes from v3:
	Use kasprintf instead of kzalloc() ... sprintf.

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 |  34 ++++++--
 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        |  38 +++++++--
 security/commoncap.c           |   3 +-
 security/inode.c               |  26 +++++-
 security/loadpin/loadpin.c     |   2 +-
 security/security.c            | 177 ++++++++++++++++++++++++++++++++++++++++-
 security/selinux/hooks.c       |  22 ++++-
 security/smack/smack_lsm.c     |  22 ++---
 security/tomoyo/tomoyo.c       |   2 +-
 security/yama/yama_lsm.c       |   2 +-
 14 files changed, 395 insertions(+), 56 deletions(-)

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/3] LSM: module hierarchy in /proc/.../attr Casey Schaufler <casey@schaufler-ca.com> - 2016-06-23 23:10 +0200
  [PATCH v4 1/3] LSM: Add /sys/kernel/security/lsm Casey Schaufler <casey@schaufler-ca.com> - 2016-06-23 23:20 +0200
    Re: [PATCH v4 1/3] LSM: Add /sys/kernel/security/lsm Paul Moore <paul@paul-moore.com> - 2016-06-24 21:00 +0200
  [PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr Casey Schaufler <casey@schaufler-ca.com> - 2016-06-23 23:20 +0200
    Re: [PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr Paul Moore <paul@paul-moore.com> - 2016-06-24 21:20 +0200
      Re: [PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr Kees Cook <keescook@chromium.org> - 2016-06-24 22:10 +0200
        Re: [PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr Paul Moore <paul@paul-moore.com> - 2016-06-24 22:30 +0200
          [PATCH v5 2/3] LSM: module hierarchy in /proc/.../attr Casey Schaufler <casey@schaufler-ca.com> - 2016-06-25 01:30 +0200
            Re: [PATCH v5 2/3] LSM: module hierarchy in /proc/.../attr Paul Moore <paul@paul-moore.com> - 2016-06-29 19:10 +0200
              Re: [PATCH v5 2/3] LSM: module hierarchy in /proc/.../attr John Johansen <john.johansen@canonical.com> - 2016-07-02 19:30 +0200
          [PATCH v5 1/3] LSM: Add /sys/kernel/security/lsm Casey Schaufler <casey@schaufler-ca.com> - 2016-06-25 01:30 +0200
            Re: [PATCH v5 1/3] LSM: Add /sys/kernel/security/lsm Paul Moore <paul@paul-moore.com> - 2016-06-29 19:10 +0200
              Re: [PATCH v5 1/3] LSM: Add /sys/kernel/security/lsm John Johansen <john.johansen@canonical.com> - 2016-07-02 19:30 +0200
          [PATCH v5 0/3] LSM: security module information improvements Casey Schaufler <casey@schaufler-ca.com> - 2016-06-25 01:30 +0200
            [PATCH v5 3/3] LSM: Add context interface for proc attrs Casey Schaufler <casey@schaufler-ca.com> - 2016-06-25 01:40 +0200
            [PATCH v4 3/3] LSM: Add context interface for proc attrs Casey Schaufler <casey@schaufler-ca.com> - 2016-06-25 01:40 +0200
              Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs Paul Moore <paul@paul-moore.com> - 2016-06-29 19:10 +0200
                Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs John Johansen <john.johansen@canonical.com> - 2016-07-02 19:30 +0200
                [PATCH v5 0/3] LSM: security module information improvements - Acked Casey Schaufler <casey@schaufler-ca.com> - 2016-07-05 18:00 +0200
                Re: [PATCH v5 0/3] LSM: security module information improvements -  Acked James Morris <jmorris@namei.org> - 2016-07-08 12:10 +0200
                Re: [PATCH v5 0/3] LSM: security module information improvements -  Acked Casey Schaufler <casey@schaufler-ca.com> - 2016-07-08 17:40 +0200
                [PATCH v5 2/3] LSM: module hierarchy in /proc/.../attr - Acked Casey Schaufler <casey@schaufler-ca.com> - 2016-07-05 18:00 +0200
                [PATCH v5 1/3] LSM: Add /sys/kernel/security/lsm - Acked Casey Schaufler <casey@schaufler-ca.com> - 2016-07-05 18:00 +0200
                [PATCH v5 3/3] LSM: Add context interface for proc attrs - Acked Casey Schaufler <casey@schaufler-ca.com> - 2016-07-05 18:00 +0200
      Re: [PATCH v4 2/3] LSM: module hierarchy in /proc/.../attr Casey Schaufler <casey@schaufler-ca.com> - 2016-06-24 22:10 +0200
  [PATCH v4 3/3] LSM: Add context interface for proc attrs Casey Schaufler <casey@schaufler-ca.com> - 2016-06-23 23:20 +0200
    Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs Kees Cook <keescook@chromium.org> - 2016-06-24 00:00 +0200
      Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs Casey Schaufler <casey@schaufler-ca.com> - 2016-06-24 00:20 +0200
      [PATCH v4 4/3] LSM: Improve context interface for proc attrs Casey Schaufler <casey@schaufler-ca.com> - 2016-06-24 18:40 +0200
        Re: [PATCH v4 4/3] LSM: Improve context interface for proc attrs Kees Cook <keescook@chromium.org> - 2016-06-24 19:50 +0200
    Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs Paul Moore <paul@paul-moore.com> - 2016-06-24 21:20 +0200
      Re: [PATCH v4 3/3] LSM: Add context interface for proc attrs Casey Schaufler <casey@schaufler-ca.com> - 2016-06-24 22:00 +0200

csiph-web