aboutsummaryrefslogtreecommitdiff
path: root/libraries/libvirt/use-virtgroup-in-polkit-rules.diff
blob: f4610f9a93fa1fabb315a7458420141a53cda62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
     }
 });