From be44b4c2c12f7c5e2f2c6f6d83330bb471f56a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 26 Nov 2014 17:59:26 +0100 Subject: [PATCH] Add missint polkit rules. --- 10-vagrant.rules | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 10-vagrant.rules diff --git a/10-vagrant.rules b/10-vagrant.rules new file mode 100644 index 0000000..c833f43 --- /dev/null +++ b/10-vagrant.rules @@ -0,0 +1,8 @@ +/* Allow users in vagrant group to manage libvirt without authentication */ +polkit.addRule(function(action, subject) { + if ((action.id == "org.libvirt.unix.manage" + || action.id == "org.libvirt.unix.monitor") + && subject.isInGroup("vagrant")) { + return polkit.Result.YES; + } +});