]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: sysctl to enable unprivileged user ns AppArmor policy loading
authorTyler Hicks <tyhicks@canonical.com>
Thu, 17 Mar 2016 00:19:10 +0000 (19:19 -0500)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:52 +0000 (01:18 -0800)
commit6b0d2a917fa0b2a398ef7a5b988837e8b5cb54e9
tree9ad612c96bb48331ed9203a3fe0ed4f3c6792002
parent255fde6c039db1a900d304c4249ad47c3009301d
apparmor: sysctl to enable unprivileged user ns AppArmor policy loading

If this sysctl is set to non-zero and a process with CAP_MAC_ADMIN in
the root namespace has created an AppArmor policy namespace,
unprivileged processes will be able to change to a profile in the
newly created AppArmor policy namespace and, if the profile allows
CAP_MAC_ADMIN and appropriate file permissions, will be able to load
policy in the respective policy namespace.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/lsm.c
security/apparmor/policy.c