summaryrefslogtreecommitdiff
path: root/libraries/libvirt/use-virtgroup-in-polkit-rules.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libvirt/use-virtgroup-in-polkit-rules.diff')
-rw-r--r--libraries/libvirt/use-virtgroup-in-polkit-rules.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/libvirt/use-virtgroup-in-polkit-rules.diff b/libraries/libvirt/use-virtgroup-in-polkit-rules.diff
new file mode 100644
index 0000000000..f4610f9a93
--- /dev/null
+++ b/libraries/libvirt/use-virtgroup-in-polkit-rules.diff
@@ -0,0 +1,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;
+ }
+ });