Re: [PATCH 10/12] Set the identity for the access manager during API call dispatch

[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>
> 
> When dispatching an RPC API call, setup the access manager to hold
> the real & effective identities of the current server client whose
> RPC is being dispatched. The setting is thread-local, so only
> affects the API call in this thread
> ---
>  src/rpc/virnetserverclient.c  |   41 +++++++++++++++++++++++++++++++++++++++++
>  src/rpc/virnetserverclient.h  |    3 +++
>  src/rpc/virnetserverprogram.c |    9 +++++++++
>  3 files changed, 53 insertions(+)
> 

>       *
> @@ -415,6 +418,12 @@ virNetServerProgramDispatchCall(virNetServerProgramPtr prog,
>       */
>      rv = (dispatcher->func)(server, client, msg, &rerr, arg, ret);
>  
> +    if (virNetServerClientDeactivateIdentity(client) < 0) {
> +        virErrorPtr err = virGetLastError();
> +        VIR_WARN("Failed to deactive identity %s", err ? err->message : "null");

s/deactive/deactivate/

-- 
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]