From: Cole Robinson Date: Tue, 7 Feb 2012 16:50:29 +0000 (-0500) Subject: Allow polkit auth for VNC and SSH users X-Git-Tag: v0.9.10-rc2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=756e6ab467a27e8228bfa2704d1c4883355ac666;p=thirdparty%2Flibvirt.git 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 --- diff --git a/daemon/libvirtd.policy-0 b/daemon/libvirtd.policy-0 index b6da94615e..5d6845c5c2 100644 --- a/daemon/libvirtd.policy-0 +++ b/daemon/libvirtd.policy-0 @@ -34,8 +34,8 @@ file are instantly applied. - no - no + auth_admin + auth_admin auth_admin_keep_session diff --git a/daemon/libvirtd.policy-1 b/daemon/libvirtd.policy-1 index 6fa3a5e71e..c2bec1f2a7 100644 --- a/daemon/libvirtd.policy-1 +++ b/daemon/libvirtd.policy-1 @@ -34,8 +34,8 @@ file are instantly applied. - no - no + auth_admin + auth_admin auth_admin_keep