[Pkg-libvirt-commits] [libguestfs] 53/59: df: Allow policykit and SASL authentication when reading list of domains.
Hilko Bengen
bengen at moszumanska.debian.org
Wed Nov 26 22:04:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 1201762cd4140c1b5195ffdbbcb9bff77a7e301c
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Thu Nov 13 15:30:52 2014 +0000
df: Allow policykit and SASL authentication when reading list of domains.
Use virConnectOpenAuth instead of virConnectOpenReadOnly.
See also:
https://www.redhat.com/archives/libguestfs/2014-November/thread.html#00035
(cherry picked from commit 891959cf7f82fac89aed3997532e2bee22ae2720)
---
df/domains.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/df/domains.c b/df/domains.c
index b2d9537..6cbc0f9 100644
--- a/df/domains.c
+++ b/df/domains.c
@@ -77,7 +77,8 @@ get_all_libvirt_domains (const char *libvirt_uri)
size_t i;
/* Get the list of all domains. */
- conn = virConnectOpenReadOnly (libvirt_uri);
+ conn = virConnectOpenAuth (libvirt_uri, virConnectAuthPtrDefault,
+ VIR_CONNECT_RO);
if (!conn) {
err = virGetLastError ();
fprintf (stderr,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list