]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
apparmor: change fn_label_build() call to not return NULL
authorJohn Johansen <john.johansen@canonical.com>
Tue, 17 Feb 2026 15:54:10 +0000 (08:54 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 14 Jun 2026 03:14:07 +0000 (20:14 -0700)
commited7cc1c6f240a0c2838c0617afb2b0466edd236f
tree8f319dc4bd0f39e6f43e02d5da8849de4411d118
parent7b42f95813dc9ceb6bda35afcf914630909a19f9
apparmor: change fn_label_build() call to not return NULL

Previously fn_label_build() was accepting a NULL which represented
ENOMEM return and ERR_PTR for errors.

Clean this up by requiring the cb fn to return an ERR_PTR or valid
value.

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