diff options
| author | Xiu Jianfeng <[email protected]> | 2022-10-28 12:33:20 +0000 |
|---|---|---|
| committer | John Johansen <[email protected]> | 2022-11-01 12:32:13 +0000 |
| commit | e9e6fa49dbab6d84c676666f3fe7d360497fd65b (patch) | |
| tree | 3f051f39d83e887cf281e24fa11fd792f2f8ff34 /lib/fault-inject.c | |
| parent | apparmor: Fix memleak issue in unpack_profile() (diff) | |
| download | kernel-e9e6fa49dbab6d84c676666f3fe7d360497fd65b.tar.gz kernel-e9e6fa49dbab6d84c676666f3fe7d360497fd65b.zip | |
apparmor: Fix memleak in alloc_ns()
After changes in commit a1bd627b46d1 ("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: a1bd627b46d1 ("apparmor: share profile name on replacement")
Signed-off-by: Xiu Jianfeng <[email protected]>
Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
