]> git.baikalelectronics.ru Git - kernel.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)
commit81a7809ed6d9f7977d4b347aa3953bb12e1ff480
treed9b0bf6c44a6672f6c3e08da340f6544056932e5
parent53d94524087a4c74f43134e9275ec85de21abda1
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