[libvirt] [PATCH v2 3/3] Use a hash table for storing MCS labels

Eric Blake eblake at redhat.com
Fri Jul 20 17:15:58 UTC 2012


On 07/20/2012 10:59 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Instead of using an O(n) efficiency linked list for storing
> MCS labels, use a hash table. Instead of having the list
> be global, put it in the SELinux driver private data struct
> to ensure uniqueness across different instances of the driver

Goodness on two fronts - improved efficiency and re-entrancy :)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120720/f6bfe650/attachment-0001.sig>


More information about the libvir-list mailing list