selinux: cache not freed if load_policy fails; reload BUG's
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines
If
security_load_policy()fails on the first try, the cache is never cleaned up. When the policy is fixed and a reload is attempted, the old cache will still exist, causing aBUG()inkmem_cache_create().This patch adds a destroy operation to clean up the cache on failure.
Looks correct to me.
- James
Signature · 2 lines
James Morris <[email protected]>