slackbuilds_ponce/libraries/libvirt/use-virtgroup-in-polkit-rules.diff
Robby Workman 2e3f7f0d78 libraries/libvirt: Fix VIRTGROUP in default polkit rules
This commit also adds the example polkit acl rules to the
package documentation.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2017-06-15 18:36:06 +07:00

15 lines
667 B
Diff

diff -Nur libvirt-3.4.0.orig/daemon/libvirt.rules libvirt-3.4.0/daemon/libvirt.rules
--- libvirt-3.4.0.orig/daemon/libvirt.rules 2015-05-23 07:56:12.046331092 -0500
+++ libvirt-3.4.0/daemon/libvirt.rules 2017-06-09 23:35:50.490172300 -0500
@@ -1,9 +1,9 @@
-// Allow any user in the 'libvirt' group to connect to system libvirtd
+// Allow any user in the '@VIRTGROUP@' group to connect to system libvirtd
// without entering a password.
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" &&
- subject.isInGroup("libvirt")) {
+ subject.isInGroup("@VIRTGROUP@")) {
return polkit.Result.YES;
}
});