Re: [PATCH] SELinux: Correct the NetLabel locking for the sk_security_struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 25 Feb 2008, Paul Moore wrote:

> 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.

Ok, the other thing to be concerned with is instruction reordering, and 
the possible need for memory barriers, which should be covered in this 
case by the memory barriers provided by the existing socket locks.

I'll apply this to for-akpm and then a revised version of the backpointer 
removal patch.


- James
-- 
James Morris
<jmorris@xxxxxxxxx>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux