On Tue, Oct 14, 2014 at 14:19 +0200, Guido Günther wrote:
> On Tue, Oct 14, 2014 at 01:02:50PM +0200, Wolodja Wentland wrote:
> >   $ groups
> >   [...] libvirt [...]
> 
> Which is used in
> 
> /usr/share/polkit-1/rules.d/60-libvirt.rules

Well, I only have /etc/polkit-1/rules.d/60-libvirt.rules and apt-file also lists
only that:

    $ apt-file search 60-libvirt.rules
    libvirt-daemon-system: /etc/polkit-1/rules.d/60-libvirt.rules

And the content of that file is:

    /* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

    // Mimic behaviour of group libvirt owning libvirt's rw socket
    //
    // See the polkit(8) man page for more information
    // about configuring polkit.

    polkit.addRule(function(action, subject) {
        if (action.id == "org.libvirt.unix.manage" &&
            subject.isInGroup("libvirt")) {
            return polkit.Result.YES;
        }
    });

Which seems to work (well, there are at least some libvirt related entries in
the output of pkaction. Just wanted to clarify this point.
-- 
Wolodja <deb...@babilen5.org>

4096R/CAF14EFC
081C B7CD FF04 2BA9 94EA  36B2 8B7F 7D30 CAF1 4EFC

Attachment: signature.asc
Description: Digital signature

Reply via email to