]> git.baikalelectronics.ru Git - kernel.git/commit
SELinux: Correct the NetLabel locking for the sk_security_struct
authorPaul Moore <paul.moore@hp.com>
Mon, 25 Feb 2008 16:40:33 +0000 (11:40 -0500)
committerJames Morris <jmorris@namei.org>
Fri, 18 Apr 2008 10:26:03 +0000 (20:26 +1000)
commit15140ffcc015545a34d611f1117c8208ecad061e
tree06f2fa54bd7ceabac2ad29a6ab0aca1deb87c032
parent4191dc6cdccbb677a464445c08c1dec5d7a08558
SELinux: Correct the NetLabel locking for the sk_security_struct

The RCU/spinlock locking approach for the nlbl_state in the sk_security_struct
was almost certainly overkill.  This patch removes both the RCU and spinlock
locking, relying on the existing socket locks to handle the case of multiple
writers.  This change also makes several code reductions possible.

Less locking, less code - it's a Good Thing.

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