Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671802 - app-emulation/libvirt non-root virsh is broken with sys-auth/polkit-0.115
Summary: app-emulation/libvirt non-root virsh is broken with sys-auth/polkit-0.115
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-24 11:23 UTC by aporilel
Modified: 2018-12-26 02:42 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 aporilel 2018-11-24 11:23:35 UTC
$ LC_ALL=C virsh list
error: failed to connect to the hypervisor
error: ошибка службы: CheckAuthorization: Failed to open file “/proc/4210/status”: No such file or directory

My polkit rule in /etc/polkit-1/rules.d/:

polkit.addRule(function(action, subject) {
    if (action.id == "org.libvirt.unix.manage" && subject.user == "myusername") {
            return polkit.Result.YES;
    }
});
Comment 1 Matthias Maier gentoo-dev 2018-12-26 02:41:57 UTC
I cannot reproduce, the following rule works fine for me:

polkit.addRule(function(action, subject) { 
  if (action.id == "org.libvirt.unix.manage" && 
      subject.isInGroup("myusergroup")) {
    return polkit.Result.YES; 
  } 
});
Comment 2 Matthias Maier gentoo-dev 2018-12-26 02:42:28 UTC
Please reopen if the problem persists and is not a configuration problem.