]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commitc9b7b9793764b171a118d049d4b721a7f5d8ac82
treed9b0bf6c44a6672f6c3e08da340f6544056932e5
parenta639e7ca8e8282b75be2724a28bfc788aa3bb156
SELinux: Fix a RCU free problem with the netport cache

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