Bug 610822 - DOCS: on www.libvirt.org about using PolicyKit authentication for libvirt is out of date
Summary: DOCS: on www.libvirt.org about using PolicyKit authentication for libvirt is ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-02 14:10 UTC by Frank Danapfel
Modified: 2010-09-21 16:58 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-09-21 16:58:15 UTC
Embargoed:


Attachments (Terms of Use)
Patch to update the documentation (2.53 KB, patch)
2010-08-12 19:16 UTC, Patrick Dignan
no flags Details | Diff

Description Frank Danapfel 2010-07-02 14:10:41 UTC
Description of problem:
The documentation at http://www.libvirt.org/auth.html in the section "Unix socket PolicyKit auth does not work anymore with the newer PolicyKit releases that are shiped with Fedora 12 and newer.

Version-Release number of selected component (if applicable):
libvirt-0.7.1-16.fc12.x86_64
polkit-0.95-2.fc12.x86_64

How reproducible:
always

Steps to Reproduce:
1. try to edit /etc/PolicyKit/PolicyKit.conf as instructed on http://www.libvirt.org/auth.html
  
Actual results:

Expected results:
 
Additional info:
With newer PolicyKit releases users have to add a file /var/lib/polkit-1/localauthority/50-local.d/libvirt.pkla and put the appropriate config in it to modify the default policy. Here's an example libvirt.pkla that gives user "fred" the right to manage libvirt without being prompted for a password:

[Local virt-manager Permissions]
Identity=unix-user:fred
Action=org.libvirt.unix.*
ResultAny=no
ResultInactive=no
ResultActive=yes

Comment 1 Patrick Dignan 2010-08-12 19:16:42 UTC
Created attachment 438512 [details]
Patch to update the documentation

Here's a patch to update the documentation appropriately.

Comment 2 Justin Clift 2010-09-21 16:58:15 UTC
This issue has been resolved upstream, with the results now live.

Patch:

  http://libvirt.org/git/?p=libvirt.git;a=commit;h=df1718cc7366296be4ab71c830cc2b93e505ceec

Results:

  http://www.libvirt.org/auth.html#ACL_server_polkit


As an additional thought if it's useful, there's more info on PolicyKit usage with libvirt here too:

  http://wiki.libvirt.org/page/SSHPolicyKitSetup


Note You need to log in before you can comment on or make changes to this bug.