]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selinux: clean up avc node cache when disabling selinux
authorThomas Liu <tliu@redhat.com>
Wed, 24 Jun 2009 21:58:05 +0000 (17:58 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 24 Jun 2009 22:29:16 +0000 (08:29 +1000)
commit89c86576ecde504da1eeb4f4882b2189ac2f9c4a
tree94674a48becd9cfde298e9fe6b58db8da28fe238
parenta893a84e8799270fbec5c3708d001650aab47138
selinux: clean up avc node cache when disabling selinux

Added a call to free the avc_node_cache when inside selinux_disable because
it should not waste resources allocated during avc_init if SELinux is disabled
and the cache will never be used.

Signed-off-by: Thomas Liu <tliu@redhat.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/include/avc.h