1
0
Fork 0

Reduce password prompts for "wheel" group members

Removes password prompts for managing libvirt and rpm-ostree
This commit is contained in:
ver4a 2024-11-10 15:56:53 +01:00
parent f8475166e0
commit f5228ceeb9
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,7 @@
// https://goldmann.pl/blog/2012/12/03/configuring-polkit-in-fedora-18-to-access-virt-manager/
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" && subject.local && subject.active && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});