]> xenbits.xensource.com Git - libvirt.git/commit
remote: Don't reject remote polkit if client lacks support
authorCole Robinson <crobinso@redhat.com>
Thu, 14 Apr 2016 18:58:40 +0000 (14:58 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 26 Apr 2016 15:43:33 +0000 (11:43 -0400)
commit84371303d8302e59e535b4ca2d7e2d5f43d7679e
treead98fc2f64f562ae033c828b6a5a279cad5009bc
parenta528ae7fb7e24e448d2636012218109ae3ef82b6
remote: Don't reject remote polkit if client lacks support

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
src/remote/remote_driver.c