Skip to contentSkip to conversation

selinux: cache not freed if load_policy fails; reload BUG's

PATCH James Morris 1 participant 1 message Nov 20, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
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 a BUG() in kmem_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]>