Skip to content

Commit 24b87a1

Browse files
committed
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: 89dbf19 ("apparmor: move change_hat mediation to using labels") Reported-by: Colin Ian King <[email protected]> Signed-off-by: John Johansen <[email protected]>
1 parent f4585bc commit 24b87a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/apparmor/domain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ static struct aa_label *build_change_hat(struct aa_profile *profile,
10361036
audit:
10371037
aa_audit_file(profile, &nullperms, OP_CHANGE_HAT, AA_MAY_CHANGEHAT,
10381038
name, hat ? hat->base.hname : NULL,
1039-
hat ? &hat->label : NULL, GLOBAL_ROOT_UID, NULL,
1039+
hat ? &hat->label : NULL, GLOBAL_ROOT_UID, info,
10401040
error);
10411041
if (!hat || (error && error != -ENOENT))
10421042
return ERR_PTR(error);

0 commit comments

Comments
 (0)