]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: LSM stacking: LSM: general but not extreme module stacking
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 27 Jul 2017 23:00:12 +0000 (16:00 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 20:54:20 +0000 (16:54 -0400)
commita3c3cde2f18c6bfa66c4e3bd6de593a386eb681a
tree8a8ce193246c27e0e7c1da26994fe4c6a0b20f19
parentac8f82a0b6d91ca884de361ff68946ec95c64bc6
UBUNTU: SAUCE: LSM stacking: LSM: general but not extreme module stacking

Leverage the infrastructure management of the credential and
file security blobs to allow stacking of security modules in
all but the most extreme case. Security modules are informed
of the location of their data within the blobs at module
initialization.

Stacking is optional. If stacking is not configured the old
limit of one "major" security module applies. If stacking is
configured any combination that does not include both SELinux
and Smack is allowed.

A subdirectory has been added to /proc/.../attr for each of
SELinux and AppArmor (Smack introduced such a subdirectory earlier)
to disambiguate what data is provided in the proc/.../attr
interfaces. An entry "context" is added to /proc/.../attr and
to each of the subdirectories. The "context" entry provides
process attribute information in the form:

        lsm-name='lsm-data'[,lsm-name='lsm-data']...

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
13 files changed:
Documentation/admin-guide/LSM/index.rst
fs/proc/base.c
include/linux/lsm_hooks.h
security/Kconfig
security/apparmor/include/context.h
security/apparmor/lsm.c
security/security.c
security/selinux/hooks.c
security/selinux/include/objsec.h
security/smack/smack.h
security/smack/smack_lsm.c
security/tomoyo/common.h
security/tomoyo/tomoyo.c