Bug 829884 - Use polkit .rules files instead of .pkla files
Summary: Use polkit .rules files instead of .pkla files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: vdsm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Federico Simoncelli
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-07 18:16 UTC by David Zeuthen
Modified: 2013-02-21 08:54 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:54:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Zeuthen 2012-06-07 18:16:52 UTC
With polkit version 0.106, .rules files are used instead of .pkla files, see

 http://davidz25.blogspot.com/2012/06/authorization-rules-in-polkit.html

for more information. Therefore, please port the file

 /var/lib/polkit-1/localauthority/10-vendor.d/10-vdsm-libvirt-access.pkla

to use the new format. If you have any questions, I'm subscribed to this bug to help. Thanks.

Comment 1 Daniel Berrangé 2012-06-08 16:04:46 UTC
Is there no backwards compatibility support for the existing .rules files in 0.106 ? I would have expected some overlap in support for both syntaxes for a couple of releases at least, to minimize the pain inflicted on both sysadmins & developers.

Comment 2 David Zeuthen 2012-06-08 16:16:22 UTC
(In reply to comment #1)
> Is there no backwards compatibility support for the existing .rules files in
> 0.106 ? I would have expected some overlap in support for both syntaxes for
> a couple of releases at least, to minimize the pain inflicted on both
> sysadmins & developers.

There is no backwards compatibility, no. The easiest is to just ship both a .pkla and a .rules file. I guess distributors can choose to include only the relevant file in their RPM (e.g. on F18 and newer you'd include the .rules file, on F17 and earlier you'd include the pkla file).

Comment 3 Federico Simoncelli 2012-09-26 13:43:10 UTC
A fix has been proposed upstream:

commit 3c5d4d23572b89bfed443d90163ae5ccddd87e38
Author: Federico Simoncelli <fsimonce>
Date:   Wed Sep 26 09:31:49 2012 -0400

    Support for the new polkit rules
    
    Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=829884
    Signed-off-by: Federico Simoncelli <fsimonce>
    Change-Id: I5de52881c60c54cd4874a8801d2705d0681f0824


http://gerrit.ovirt.org/#/c/8213/

Comment 4 Federico Simoncelli 2013-02-21 08:54:06 UTC
The new polkit rules file is used since vdsm-4.10.1-1.fc18.


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