]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBUNTU: SAUCE: apparmor: fix policy_compat permission remap with extended permissions
authorJohn Johansen <john.johansen@canonical.com>
Fri, 10 Mar 2023 23:59:45 +0000 (15:59 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 23 Mar 2023 19:41:26 +0000 (20:41 +0100)
commitb67242b43ee835cabb7404d7ca80061265066d44
treec5f20cb02bd796bacb076d4294098d754b19cbcf
parent2f86f6a0bc595cde7fa83c89c49af0fcd33147ec
UBUNTU: SAUCE: apparmor: fix policy_compat permission remap with extended permissions

BugLink: https://bugs.launchpad.net/bugs/2012136
If the extended permission table is present we should not be attempting
to do a compat_permission remap as the compat_permissions are not
stored in the dfa accept states.

Fixes: fd1b2b95a211 ("apparmor: add the ability for policy to specify a permission table")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
security/apparmor/policy_unpack.c