]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 18 Jan 2023 10:41:17 +0000 (11:41 +0100)
commitf9da3e880d10c1aae87a7e2b3e9dec36a8757be6
tree608f0589f0912a09df9c0676bbd3fbf6165fc887
parent5378c6ff61eca5f8deca9a1563a2b793de2e2b01
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: f0bc4698e687 ("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