umber-kernel/security/apparmor
John Johansen aebd195e93 apparmor: fix aa_label to return state from compount and component match
[ Upstream commit 9058798652c8bc0584ed1fb0766a1015046c06e8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-02-26 14:59:42 -08:00
..
include apparmor: Fix & Optimize table creation from possibly unaligned memory 2026-02-26 14:59:41 -08:00
.gitignore
Kconfig Revert "apparmor: use SHA-256 library API instead of crypto_shash API" 2025-07-15 22:39:22 -07:00
Makefile apparmor: make all generated string array headers const char *const 2025-05-25 20:15:01 -07:00
af_unix.c apparmor/af_unix: constify struct path * arguments 2025-09-15 21:17:10 -04:00
apparmorfs.c apparmor: fix invalid deref of rawdata when export_binary is unset 2026-02-26 14:59:42 -08:00
audit.c apparmor: add support for profiles to define the kill signal 2025-01-18 06:47:12 -08:00
capability.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
crypto.c Revert "apparmor: use SHA-256 library API instead of crypto_shash API" 2025-07-15 22:39:22 -07:00
domain.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
file.c apparmor: move check for aa_null file to cover all cases 2026-02-26 14:59:41 -08:00
ipc.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
label.c apparmor: fix aa_label to return state from compount and component match 2026-02-26 14:59:42 -08:00
lib.c apparmor: fix documentation mismatches in val_mask_to_str and socket functions 2025-07-20 02:19:28 -07:00
lsm.c apparmor: avoid per-cpu hold underflow in aa_get_buffer 2026-02-26 14:59:42 -08:00
match.c apparmor: Fix & Optimize table creation from possibly unaligned memory 2026-02-26 14:59:41 -08:00
mount.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00
net.c apparmor: fix NULL sock in aa_sock_file_perm 2026-02-26 14:59:41 -08:00
nulldfa.in
path.c
policy.c apparmor: fix: oops when trying to free null ruleset 2025-08-04 01:14:56 -07:00
policy_compat.c apparmor: add additional flags to extended permission. 2025-01-18 06:47:12 -08:00
policy_ns.c
policy_unpack.c apparmor: return -ENOMEM in unpack_perms_table upon alloc failure 2026-02-26 14:59:41 -08:00
policy_unpack_test.c + Features 2025-08-04 08:17:28 -07:00
procattr.c
resource.c apparmor: fix rlimit for posix cpu timers 2026-02-26 14:59:41 -08:00
secid.c
stacksplitdfa.in
task.c apparmor: transition from a list of rules to a vector of rules 2025-07-20 02:31:06 -07:00