]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: make label_match return a consistent value
authorJohn Johansen <john.johansen@canonical.com>
Fri, 14 Nov 2025 07:59:38 +0000 (23:59 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 29 Jan 2026 09:27:55 +0000 (01:27 -0800)
commita4c9efa4dbad6dacad6e8b274e30e814c8353097
treedccf90ff38972e59ea126800b5fb4236a30e3ebc
parentb2e27be2948f2f8c38421cd554b5fc9383215648
apparmor: make label_match return a consistent value

compound match is inconsistent in returning a state or an integer error
this is problemati if the error is ever used as a state in the state
machine

Fixes: f1bd904175e81 ("apparmor: add the base fns() for domain labels")
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c