[PATCH 01/12] ima: Have the LSM free its audit rule

Mimi Zohar zohar at linux.ibm.com
Thu Jun 25 19:41:43 UTC 2020


On Mon, 2020-06-22 at 19:32 -0500, Tyler Hicks wrote:
> 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 at linux.microsoft.com>
> Cc: Janne Karhunen <janne.karhunen at gmail.com>

Reviewed-by: Mimi Zohar <zohar at linux.ibm.com>



More information about the Linux-security-module-archive mailing list