apparmor: add custom apparmorfs that will be used by policy namespace files
authorJohn Johansen <john.johansen@canonical.com>
Thu, 25 May 2017 12:52:56 +0000 (05:52 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 8 Jun 2017 19:51:51 +0000 (12:51 -0700)
commita481f4d917835cad86701fc0d1e620c74bb5cd5f
tree23841658b0582eedeed9d3891d434a051dcbdceb
parent64c8697045f87713f0648e8429fcc3a0c4c61ffd
apparmor: add custom apparmorfs that will be used by policy namespace files

AppArmor policy needs to be able to be resolved based on the policy
namespace a task is confined by. Add a base apparmorfs filesystem that
(like nsfs) will exist as a kern mount and be accessed via jump_link
through a securityfs file.

Setup the base apparmorfs fns and data, but don't use it yet.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Reviewed-by: Seth Arnold <seth.arnold@canonical.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
include/uapi/linux/magic.h
security/apparmor/apparmorfs.c