[libvirt] [PATCH 09/12] Add ability to associate real/effective identity on virNetServerClientPtr
Eric Blake
eblake at redhat.com
Thu May 3 22:53:37 UTC 2012
On 05/02/2012 05:44 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> 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 at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120503/1ff27e02/attachment-0001.sig>
More information about the libvir-list
mailing list