]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
apparmor: fix: kzalloc perms tables for shared dfas
authorJohn Johansen <john.johansen@canonical.com>
Sat, 15 Apr 2023 07:50:32 +0000 (00:50 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 6 Jul 2023 18:05:58 +0000 (11:05 -0700)
commitec6851ae0ab4587e610e260ddda75f92f3389f91
treeb25763d9b6a24b99eef27dcbdeef57471e9fa9bc
parent6f442d42c0d89876994a4a135eadf82b0e6ff6e4
apparmor: fix: kzalloc perms tables for shared dfas

Currently the permstables of the shared dfas are not shared, and need
to be allocated and copied. In the future this should be addressed
with a larger rework on dfa and pdb ref counts and structure sharing.

BugLink: http://bugs.launchpad.net/bugs/2017903
Fixes: 217af7e2f4de ("apparmor: refactor profile rules and attachments")
Cc: stable@vger.kernel.org
Signed-off-by: John Johansen <john.johansen@canonical.com>
Reviewed-by: Jon Tourville <jontourville@me.com>
security/apparmor/policy.c
security/apparmor/policy_unpack.c