Re: [libvirt] Proposed libguestfs API for implementing libvirt virConnectOpenAuth

2012-10-15 Thread Richard W.M. Jones
On Sun, Oct 14, 2012 at 07:44:44PM -0400, Cole Robinson wrote: On 10/13/2012 05:31 AM, Richard W.M. Jones wrote: Does libvirt (or policy kit?) provide any mechanism for caching these credentials within the same process, so that we don't have to provide the same creds back to libvirt

Re: [libvirt] Proposed libguestfs API for implementing libvirt virConnectOpenAuth

2012-10-15 Thread Cole Robinson
On 10/15/2012 04:01 AM, Richard W.M. Jones wrote: From 9eea45e80ad80283f1a89f792bcf0c174818f4a2 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones rjo...@redhat.com Date: Mon, 15 Oct 2012 09:01:13 +0100 Subject: [PATCH] daemon: Make the default PolicyKit policy auth_admin_keep. ---

Re: [libvirt] Proposed libguestfs API for implementing libvirt virConnectOpenAuth

2012-10-14 Thread Cole Robinson
On 10/13/2012 05:31 AM, Richard W.M. Jones wrote: Does libvirt (or policy kit?) provide any mechanism for caching these credentials within the same process, so that we don't have to provide the same creds back to libvirt for multiple connections? Yeah, that's the 'keep' in

[libvirt] Proposed libguestfs API for implementing libvirt virConnectOpenAuth

2012-10-13 Thread Richard W.M. Jones
As in the example code below. static void do_auth (guestfs_h *g, void *opaque, uint64_t event, int event_handle, int flags, const char *buf, size_t buf_len, const uint64_t *array, size_t array_len) { char **creds; size_t i; char *prompt;

Re: [libvirt] Proposed libguestfs API for implementing libvirt virConnectOpenAuth

2012-10-13 Thread Richard W.M. Jones
I forgot to CC this list on the patch that implements this. It is here: https://www.redhat.com/archives/libguestfs/2012-October/msg00070.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install