Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

apparmor: Fix failure to audit context info in build_change_hat

Cleans up clang warning:
warning: variable 'info' set but not used [-Wunused-but-set-variable]

Fixes: 89dbf1962aa63 ("apparmor: move change_hat mediation to using labels")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>

+1 -1
+1 -1
security/apparmor/domain.c
··· 1036 1036 audit: 1037 1037 aa_audit_file(profile, &nullperms, OP_CHANGE_HAT, AA_MAY_CHANGEHAT, 1038 1038 name, hat ? hat->base.hname : NULL, 1039 - hat ? &hat->label : NULL, GLOBAL_ROOT_UID, NULL, 1039 + hat ? &hat->label : NULL, GLOBAL_ROOT_UID, info, 1040 1040 error); 1041 1041 if (!hat || (error && error != -ENOENT)) 1042 1042 return ERR_PTR(error);