apparmor: Use pointer to struct aa_label for lbs_cred
authorXiu Jianfeng <xiujianfeng@huawei.com>
Fri, 21 Oct 2022 00:46:04 +0000 (08:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:21 +0000 (13:14 +0100)
commit10ae636115b5244bce223766f74c2826729ee494
tree4799b43be8d5271d5bea923a50b4901e189d832a
parent8d50ccfbe27b424693b71592d0aa5ae923094552
apparmor: Use pointer to struct aa_label for lbs_cred

[ Upstream commit 37923d4321b1e38170086da2c117f78f2b0f49c6 ]

According to the implementations of cred_label() and set_cred_label(),
we should use pointer to struct aa_label for lbs_cred instead of struct
aa_task_ctx, this patch fixes it.

Fixes: bbd3662a8348 ("Infrastructure management of the cred security blob")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/apparmor/lsm.c