]> xenbits.xensource.com Git - libvirt.git/commit
Use a hash table for storing MCS labels
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 24 May 2012 16:22:29 +0000 (17:22 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 20 Jul 2012 19:17:24 +0000 (20:17 +0100)
commita56c3470801450de6a5440f4b2fee1305886a0c1
tree55dc59ed3100e7769714b21b6208154e983f783f
parent2e668a61d5ae4cbd6f79e096d0c394f186e132bd
Use a hash table for storing MCS labels

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.
This also ensures thread safety when multiple hypervisor
drivers are used in the same libvirtd process

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/security/security_selinux.c