On 03/13/2013 12:04 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange(a)redhat.com>
Pull the code which parses the current process MCS range
out of virSecuritySELinuxMCSFind and into a new method
virSecuritySELinuxMCSGetProcessRange.
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
src/security/security_selinux.c | 135 ++++++++++++++++++++++++----------------
1 file changed, 80 insertions(+), 55 deletions(-)
ACK.
+ for (;;) {
+ int c1 = virRandomInt(catRange);
+ int c2 = virRandomInt(catRange);
+
+ VIR_DEBUG("Try cat %s:c%d,c%d", sens, c1+catMin, c2+catMin);
Cosmetic: spaces around '+'
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org