]> git.karo-electronics.de Git - karo-tx-linux.git/commit
apparmor: fix policy load/remove semantics
authorJohn Johansen <john.johansen@canonical.com>
Sun, 4 Jun 2017 19:22:22 +0000 (12:22 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 11 Jun 2017 00:11:32 +0000 (17:11 -0700)
commit60285eb3e7c8827e00e2f2b54561a8cca07d802f
tree3f4ea89339e63e1a522e0d6d814f64348e555e5e
parent3664268f19ea07bec55df92fe53ff9ed28968bcc
apparmor: fix policy load/remove semantics

The namespace being passed into the replace/remove profiles fns() is
not the view, but the namespace specified by the inode from the
file hook (if present) or the loading tasks ns, if accessing the
top level virtualized load/replace file interface.

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