android_kernel_motorola_sm6225/security/apparmor/include
John Johansen 7af3595140 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: 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:15:36 +02:00
..
apparmor.h
apparmorfs.h
audit.h apparmor: Add support for audit rule filtering 2018-06-07 01:50:47 -07:00
capability.h LSM: generalize flag passing to security_capable 2020-01-23 08:21:29 +01:00
cred.h apparmor: don't try to replace stale label in ptrace access check 2020-01-27 14:49:55 +01:00
crypto.h
domain.h
file.h
ipc.h
label.h apparmor: fix nnp subset test for unconfined 2020-06-25 15:32:52 +02:00
lib.h apparmor: fix absroot causing audited secids to begin with = 2022-08-25 11:15:35 +02:00
match.h
mount.h
net.h
path.h apparmor: improve get_buffers macro by using get_cpu_ptr 2018-06-07 01:49:21 -07:00
perms.h apparmor: Check buffer bounds when mapping permissions mask 2018-07-19 16:24:43 -07:00
policy.h apparmor: fix overlapping attachment computation 2022-08-25 11:15:36 +02:00
policy_ns.h
policy_unpack.h
procattr.h
resource.h
secid.h apparmor: fixup secid map conversion to using IDR 2018-06-07 01:50:49 -07:00
sig_names.h
task.h