mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-14 21:56:41 +01:00
2e3f7f0d78
This commit also adds the example polkit acl rules to the package documentation. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
15 lines
667 B
Diff
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;
|
|
}
|
|
});
|