]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow polkit auth for VNC and SSH users
authorCole Robinson <crobinso@redhat.com>
Tue, 7 Feb 2012 16:50:29 +0000 (11:50 -0500)
committerCole Robinson <crobinso@redhat.com>
Tue, 7 Feb 2012 16:59:35 +0000 (11:59 -0500)
commit756e6ab467a27e8228bfa2704d1c4883355ac666
tree168344582d960cada2a4c2795c19af42732c4626
parentf2445e4de70547e32a6bcec3e1e8e51f02ac5b36
Allow polkit auth for VNC and SSH users

If you are sitting in front of a physical machine and logged in as
a regular user, you can connect to the system libvirtd instance
by providing a root password to policykit. This is how most
virt-manager users talk to libvirt.

However, if you are launching virt-manager over ssh -X, or over
VNC started from say /etc/sysconfig/vncservers, our policykit policy
rejects the user outright, providing no option to provide the root
password. This is confusing to users and doesn't seem to serve much
point.

Change the policy to allow inactive (VNC) and non-local (SSH, VNC)
to provide root credentials for accessing system libvirtd. We use
auth_admin rather than auth_admin_keep so that credentials aren't
cached at all, and every subsequent reconnection to libvirt requires
auth.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=625115
Similar change to PackageKit policy:
https://bugzilla.redhat.com/show_bug.cgi?id=528511
daemon/libvirtd.policy-0
daemon/libvirtd.policy-1