Re: [PATCH 09/12] Add ability to associate real/effective identity on virNetServerClientPtr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/02/2012 05:44 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Add APIs which allow storage of a real & effective identity on
> all server clients. Also add an API which allows creation of an
> initial identity based on the results of client authentication
> processes like TLS, x509, SASL, SO_PEERCRED
> ---
>  src/rpc/virnetserverclient.c |  152 ++++++++++++++++++++++++++++++++++++++++++
>  src/rpc/virnetserverclient.h |   11 +++
>  2 files changed, 163 insertions(+)
> 

> +
> +        if (!(username = virGetUserName(uid)))
> +            goto cleanup;
> +        if (!(groupname = virGetGroupName(gid)))
> +            goto cleanup;
> +        if (virAsprintf(&processid, "%d", (int)pid) < 0)

This truncates on mingw64; I'd prefer %lld, (long long)pid.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]