13 Mar
2013
13 Mar
'13
11:36 p.m.
On 03/13/2013 12:04 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange@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@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