diff options
author | Tyler Hicks <tyhicks@linux.microsoft.com> | 2020-07-09 09:19:00 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-19 09:26:36 +0300 |
commit | 96022c3ddf63052dd5e3367552b2c6b91f91ff6c (patch) | |
tree | 241916bc49b6e124109b670afbd8f736bca49f19 /crypto | |
parent | b76ca3f373b52c9be3838b703c1976cafe07752e (diff) | |
download | linux-96022c3ddf63052dd5e3367552b2c6b91f91ff6c.tar.xz |
ima: Have the LSM free its audit rule
[ Upstream commit 9ff8a616dfab96a4fa0ddd36190907dc68886d9b ]
Ask the LSM to free its audit rule rather than directly calling kfree().
Both AppArmor and SELinux do additional work in their audit_rule_free()
hooks. Fix memory leaks by allowing the LSMs to perform necessary work.
Fixes: b16942455193 ("ima: use the lsm policy update notifier")
Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Cc: Janne Karhunen <janne.karhunen@gmail.com>
Cc: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions