linux/security/apparmor/include
John Johansen c62f2f56e0 apparmor: fix overlapping attachment computation
commit 2504db2071 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: 21f6066105 ("apparmor: improve overlapping domain attachment resolution")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:40:00 +02:00
..
apparmor.h
apparmorfs.h
audit.h
capability.h
cred.h
crypto.h
domain.h
file.h
ipc.h
label.h
lib.h
match.h
mount.h
net.h
path.h
perms.h
policy.h
policy_ns.h
policy_unpack.h
procattr.h
resource.h
secid.h
sig_names.h
task.h