apparmor: add mkdir/rmdir interface to manage policy namespaces
authorJohn Johansen <john.johansen@canonical.com>
Fri, 26 May 2017 23:45:48 +0000 (16:45 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:27 +0000 (17:11 -0700)
commit4ae47f33354a96efb4e4231dec0d72a586b3921c
tree9d75fc20d9fd75333595aaa17e738087aa6912dc
parentd9bf2c268be6064ae0c9980e4c37fdd262c7effc
apparmor: add mkdir/rmdir interface to manage policy namespaces

When setting up namespaces for containers its easier for them to use
an fs interface to create the namespace for the containers
policy. Allow mkdir/rmdir under the policy/namespaces/ dir to be used
to create and remove namespaces.

BugLink: http://bugs.launchpad.net/bugs/1611078
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c