summaryrefslogtreecommitdiffstats
path: root/security/apparmor/label.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2022-03-26 01:58:15 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-25 11:15:36 +0200
commit7af35951404b134731926cf80a218db7b1795ae9 (patch)
tree36f27a46777df8fb87c160a06e68de4cebe3c60a /security/apparmor/label.c
parent5fc2dbf79d14bc2da5dfc6ac66e5d0ca31057652 (diff)
downloadlinux-stable-7af35951404b134731926cf80a218db7b1795ae9.tar.gz
linux-stable-7af35951404b134731926cf80a218db7b1795ae9.tar.bz2
linux-stable-7af35951404b134731926cf80a218db7b1795ae9.zip
apparmor: fix overlapping attachment computation
commit 2504db207146543736e877241f3b3de005cbe056 upstream. When finding the profile via patterned attachments, the longest left match is being set to the static compile time value and not using the runtime computed value. Fix this by setting the candidate value to the greater of the precomputed value or runtime computed value. Fixes: 21f606610502 ("apparmor: improve overlapping domain attachment resolution") Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/apparmor/label.c')
0 files changed, 0 insertions, 0 deletions