]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
apparmor: ensure unconfined profiles have dfas initialized
authorJohn Johansen <john.johansen@canonical.com>
Wed, 16 Aug 2017 12:48:06 +0000 (05:48 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:34:51 +0000 (07:34 -0500)
commit8dfd0fb7b660c43cb630d0774e375974327ccfdb
treeee2d8594de2df6c1728a7b4330c646978f6cf0f6
parentfc26f8fad00bf2e4517bd2552905e10a00e53f60
apparmor: ensure unconfined profiles have dfas initialized

Generally unconfined has early bailout tests and does not need the
dfas initialized, however if an early bailout test is ever missed
it will result in an oops.

Be defensive and initialize the unconfined profile to have null dfas
(no permission) so if an early bailout test is missed we fail
closed (no perms granted) instead of oopsing.

Signed-off-by: John Johansen <john.johansen@canonical.com>
(cherry picked from commit 034ad2d248927722bdcd1aedb62634cdc2049113 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/policy_ns.c