slackbuilds_ponce/libraries/libvirt/use-virtgroup-in-polkit-rules.diff
Robby Workman 0e4e8430af
libraries/libvirt: Updated for version 4.5.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2018-08-25 09:59:44 +07:00

15 lines
687 B
Diff

diff -Nur libvirt-4.6.0.orig/src/remote/libvirtd.rules libvirt-4.6.0/src/remote/libvirtd.rules
--- libvirt-4.6.0.orig/src/remote/libvirtd.rules 2018-02-26 03:02:18.496310271 -0600
+++ libvirt-4.6.0/src/remote/libvirtd.rules 2018-08-12 21:55:35.293691409 -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;
}
});