[libvirt] [PATCH 2/3] Separate MCS range parsing from MCS range checking
Eric Blake
eblake at redhat.com
Wed Mar 13 22:36:12 UTC 2013
On 03/13/2013 12:04 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130313/82a0e383/attachment-0001.sig>
More information about the libvir-list
mailing list