OSDN Git Service

apparmor: add namespace lookup fns()
authorJohn Johansen <john.johansen@canonical.com>
Sat, 3 Jun 2017 00:44:27 +0000 (17:44 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:32 +0000 (17:11 -0700)
commit3664268f19ea07bec55df92fe53ff9ed28968bcc
tree3db852e790109e4fbf27e7f91c6e0e642371c927
parentae3b31653691b9c5b572b99596de3dfcc8f05006
apparmor: add namespace lookup fns()

Currently lookups are restricted to a single ns component in the
path. However when namespaces are allowed to have separate views, and
scopes this will not be sufficient, as it will be possible to have
a multiple component ns path in scope.

Add some ns lookup fns() to allow this and use them.

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