apparmor: refactor prepare_ns() and make usable from different views
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 08:42:34 +0000 (00:42 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:28 +0000 (01:18 -0800)
commit73688d1ed0b8f800f312f7bc9d583463858da861
tree41d58fc6558b4a07554da9dc3ff4db3a36d1ad59
parent5fd1b95fc9b96629d185f5fe3d9342fcff78eb30
apparmor: refactor prepare_ns() and make usable from different views

prepare_ns() will need to be called from alternate views, and namespaces
will need to be created via different interfaces. So refactor and
allow specifying the view ns.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c
security/apparmor/include/policy.h
security/apparmor/include/policy_ns.h
security/apparmor/policy.c
security/apparmor/policy_ns.c