If you compile a client --without-polkit, and connect to a URI that
needs
polkit auth, the connection will fail with:
$ ./tools/virsh --connect qemu+ssh://crobinso@machine/system
error: failed to connect to the hypervisor
error: authentication failed: unsupported authentication type 2
This is because the client side portion of the polkit handling is
compiled out. However, nothing polkit specific is actually required
of the client.
Fix that error by unconditionally compiling the basic polkit client
handling.
https://bugzilla.redhat.com/show_bug.cgi?id=635529
---
Granted, if polkit needs to do any interaction at all, and you are
connecting to a remote machine, then things are going to fail anyways
with a 'missing agent' error. But if you're user is in the 'libvirt'
group polkit doesn't need to auth it should all work.
src/remote/remote_driver.c | 69 +++++++++++++++++++++-------------------------
1 file changed, 31 insertions(+), 38 deletions(-)