PKLA --> JavaScript

tim.lauridsen at gmail.com tim.lauridsen at gmail.com
Thu Nov 15 17:00:24 UTC 2012


On Thu, Nov 15, 2012 at 5:37 PM, Ian Pilcher <arequipeno at gmail.com> wrote:

> I've just reviewed those pages, and it's certainly not obvious to me
> how I would go about "porting" a PKLA file.
>
>   [libvirt Management Access]
>   Identity=unix-group:wheel
>   Action=org.libvirt.unix.manage
>   ResultAny=no
>   ResultInactive=no
>   ResultActive=yes
>
> The latter page, in particular, reads like something written for an
> audience of developers, rather than system administrators.  I'm sure
> that I can figure it out in time, but this seems like a terrible burden
> to put on system administrators, particularly those who are (sometimes
> proudly) averse to anything that smacks of "programming".
>


the .rules file should look like this: and go into *
/usr/share/polkit-1/rules.d/ *

polkit.addRule(function(action, subject) {
    if (action.id == "org.libvirt.unix.manage" &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;;
    }
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20121115/dcb87664/attachment-0001.html>


More information about the devel mailing list