Commit 24b87a16 authored by John Johansen's avatar John Johansen

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: 89dbf196 ("apparmor: move change_hat mediation to using labels")
Reported-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent f4585bc2
...@@ -1036,7 +1036,7 @@ static struct aa_label *build_change_hat(struct aa_profile *profile, ...@@ -1036,7 +1036,7 @@ static struct aa_label *build_change_hat(struct aa_profile *profile,
audit: audit:
aa_audit_file(profile, &nullperms, OP_CHANGE_HAT, AA_MAY_CHANGEHAT, aa_audit_file(profile, &nullperms, OP_CHANGE_HAT, AA_MAY_CHANGEHAT,
name, hat ? hat->base.hname : NULL, name, hat ? hat->base.hname : NULL,
hat ? &hat->label : NULL, GLOBAL_ROOT_UID, NULL, hat ? &hat->label : NULL, GLOBAL_ROOT_UID, info,
error); error);
if (!hat || (error && error != -ENOENT)) if (!hat || (error && error != -ENOENT))
return ERR_PTR(error); return ERR_PTR(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment