[Pkg-libvirt-commits] [libvirt] 02/03: Add rules for older policy kit

Guido Guenther agx at moszumanska.debian.org
Tue Oct 14 17:15:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to annotated tag debian/1.2.9-3
in repository libvirt.

commit 3a06d85ee295f9af0bc31d16e32cbd8190d9f963
Author: Guido Günther <agx at sigxcpu.org>
Date:   Tue Oct 14 15:57:56 2014 +0200

    Add rules for older policy kit
    
    (as in jessie/sid).
    
    Thanks: Török Edwin, Wolodja Wentland and Michael Biebl
    Closes: #765346
---
 debian/libvirt-daemon-system.dirs | 3 ++-
 debian/polkit/60-libvirt.pkla     | 6 ++++++
 debian/rules                      | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/libvirt-daemon-system.dirs b/debian/libvirt-daemon-system.dirs
index 02a782d..a8e91dc 100644
--- a/debian/libvirt-daemon-system.dirs
+++ b/debian/libvirt-daemon-system.dirs
@@ -9,4 +9,5 @@
 /var/log/libvirt/uml
 /var/log/libvirt/lxc
 /etc/libvirt/hooks
-/usr/share/polkit-1/rules.d/
\ No newline at end of file
+/usr/share/polkit-1/rules.d/
+/var/lib/polkit-1/localauthority/10-vendor.d/
diff --git a/debian/polkit/60-libvirt.pkla b/debian/polkit/60-libvirt.pkla
new file mode 100644
index 0000000..2c7ef08
--- /dev/null
+++ b/debian/polkit/60-libvirt.pkla
@@ -0,0 +1,6 @@
+[Allow group libvirt management permissions]
+Identity=unix-group:libvirt
+Action=org.libvirt.unix.manage
+ResultAny=yes
+ResultInactive=yes
+ResultActive=yes
diff --git a/debian/rules b/debian/rules
index d80a43f..ed80e8d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -148,6 +148,8 @@ override_dh_install:
 	# Add our backward compat polkit rule
 	cp debian/polkit/60-libvirt.rules \
 	    debian/libvirt-daemon-system/usr/share/polkit-1/rules.d/
+	cp debian/polkit/60-libvirt.pkla \
+	    debian/libvirt-daemon-system/var/lib/polkit-1/localauthority/10-vendor.d/
 ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
 	# Linux supports more nice things:
 	dh_install -p libvirt-daemon-system usr/lib/systemd/system lib/systemd/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list