SELinux: Fix a RCU free problem with the netport cache
authorPaul Moore <paul.moore@hp.com>
Fri, 25 Apr 2008 19:03:39 +0000 (15:03 -0400)
committerJames Morris <jmorris@namei.org>
Sun, 27 Apr 2008 23:36:27 +0000 (09:36 +1000)
The netport cache doesn't free resources in a manner which is safe or orderly.
This patch fixes this by adding in a missing call to rcu_dereference() in
sel_netport_insert() as well as some general cleanup throughout the file.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/netport.c

Simple merge