Re: [PATCH] selinux: cache not freed if load_policy fails; reloadBUG's

From: James Morris
Date: Fri Nov 19 2004 - 21:26:38 EST



> 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
--
James Morris
<jmorris@xxxxxxxxxx>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/