]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: remove apply_modes_to_perms from label_match
authorJohn Johansen <john.johansen@canonical.com>
Fri, 14 Nov 2025 08:14:36 +0000 (00:14 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 29 Jan 2026 09:27:54 +0000 (01:27 -0800)
commitb2e27be2948f2f8c38421cd554b5fc9383215648
tree526b27da1a4ada763d0aa9a34ae84717623e90f0
parent9f79b1cee91b3591a9b8fc0b3534ec966b8e463f
apparmor: remove apply_modes_to_perms from label_match

The modes shouldn't be applied at the point of label match, it just
results in them being applied multiple times. Instead they should be
applied after which is already being done by all callers so it can
just be dropped from label_match.

Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c