]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: fix aa_label to return state from compount and component match
authorJohn Johansen <john.johansen@canonical.com>
Mon, 2 Feb 2026 12:12:02 +0000 (04:12 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 2 Feb 2026 12:16:26 +0000 (04:16 -0800)
commit9058798652c8bc0584ed1fb0766a1015046c06e8
treecfd4cf2873c8b5bc8e33de4a0dfd33a6653fb2f2
parent102ada7ca37ed8358bd70c6f8e6475ebacf6f76d
apparmor: fix aa_label to return state from compount and component match

aa-label_match is not correctly returning the state in all cases.
The only reason this didn't cause a error is that all callers currently
ignore the return value.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202602020631.wXgZosyU-lkp@intel.com/
Fixes: a4c9efa4dbad6 ("apparmor: make label_match return a consistent value")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c