acrn-kernel/security/apparmor
Xiu Jianfeng 12695b4b76 apparmor: Fix memleak in alloc_ns()
[ Upstream commit e9e6fa49db ]

After changes in commit a1bd627b46 ("apparmor: share profile name on
replacement"), the hname member of struct aa_policy is not valid slab
object, but a subset of that, it can not be freed by kfree_sensitive(),
use aa_policy_destroy() to fix it.

Fixes: a1bd627b46 ("apparmor: share profile name on replacement")
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>
2022-12-31 13:32:31 +01:00
..
include apparmor: move ptrace mediation to more logical task.{h,c} 2022-07-19 04:14:22 -07:00
.gitignore
Kconfig apparmor: Enable tuning of policy paranoid load for embedded systems 2022-07-09 15:13:59 -07:00
Makefile
apparmorfs.c apparmor: fix a memleak in multi_transaction_new() 2022-12-31 13:32:29 +01:00
audit.c apparmor: fix quiet_denied for file rules 2022-07-09 15:13:59 -07:00
capability.c
crypto.c
domain.c apparmor: fix overlapping attachment computation 2022-07-19 02:52:36 -07:00
file.c
ipc.c apparmor: move ptrace mediation to more logical task.{h,c} 2022-07-19 04:14:22 -07:00
label.c apparmor: Fix regression in stacking due to label flags 2022-12-31 13:32:29 +01:00
lib.c apparmor: extend policydb permission set by making use of the xbits 2022-07-19 02:57:15 -07:00
lsm.c apparmor: Use pointer to struct aa_label for lbs_cred 2022-12-31 13:32:30 +01:00
match.c
mount.c apparmor: extend policydb permission set by making use of the xbits 2022-07-19 02:57:15 -07:00
net.c apparmor: add a kernel label to use on kernel objects 2022-07-13 16:37:21 -07:00
nulldfa.in
path.c
policy.c apparmor: fix lockdep warning when removing a namespace 2022-12-31 13:32:29 +01:00
policy_ns.c apparmor: Fix memleak in alloc_ns() 2022-12-31 13:32:31 +01:00
policy_unpack.c apparmor: Fix abi check to include v8 abi 2022-12-31 13:32:29 +01:00
policy_unpack_test.c apparmor: test: Remove some casts which are no-longer required 2022-07-09 15:14:14 -07:00
procattr.c apparmor: Fix kernel-doc 2022-07-09 15:13:59 -07:00
resource.c
secid.c apparmor: disable showing the mode as part of a secid to secctx 2022-07-13 17:18:29 -07:00
stacksplitdfa.in
task.c apparmor: move ptrace mediation to more logical task.{h,c} 2022-07-19 04:14:22 -07:00