Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ima: Have the LSM free its audit rule
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: b169424 ("ima: use the lsm policy update notifier") Signed-off-by: Tyler Hicks <[email protected]> Cc: Janne Karhunen <[email protected]> Cc: Casey Schaufler <[email protected]> Reviewed-by: Mimi Zohar <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
- Loading branch information