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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
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]>