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

2020-06-25 Thread Mimi Zohar
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:

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

2020-06-23 Thread Tyler Hicks
On 2020-06-22 19:32:25, 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:

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

2020-06-22 Thread Tyler Hicks
On 2020-06-22 17:55:59, Casey Schaufler wrote: > On 6/22/2020 5:32 PM, 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

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

2020-06-22 Thread Casey Schaufler
On 6/22/2020 5:32 PM, 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

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

2020-06-22 Thread Tyler Hicks
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: