Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597772 - app-emulation/libvirt installed policykit rules rely on non-existing 'libvirt' group
Summary: app-emulation/libvirt installed policykit rules rely on non-existing 'libvirt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-22 12:28 UTC by Kristian
Modified: 2023-04-02 17:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian 2016-10-22 12:28:15 UTC
libvirt installs the policykit rules file (under /usr/share/polkit-1/rules.d)  from upstream (daemon/libvirt.rules), which allows members of the libvirt group to manage virtual machines. The libvirt group does not exist on gentoo, instead a qemu group is created. As I use qemu, which creates the kvm group, I manually change it to kvm to make it work.

There are two different ways to solve this (as far as I can see):

1. create a libvirt group

2. change the policy file to use another existing group (qemu, kvm) or at least warn about that after installation
Comment 1 Matthias Maier gentoo-dev 2017-01-22 15:45:29 UTC
(In reply to Kristian from comment #0)
> As I use qemu, which creates the kvm group, I manually change it to kvm to make it work.

It is better to drop your overrides into /etc/polkit-1/rules.d instead of manually overriding this file.
Comment 2 Matthias Maier gentoo-dev 2017-01-22 16:29:56 UTC
I have updated 2.5.0-r2 and 9999. (The former will be stabilized soon).

commit dc2a7fec11cf5c934bd2a6fe656bd930a11c9abb
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Sun Jan 22 10:14:10 2017 -0600

    app-emulation/libvirt: add a libvirt group, bug #597772
    
    Add a libvirt group for convenience and update readme
    
    Package-Manager: Portage-2.3.0, Repoman-2.3.1