[Pkg-libvirt-commits] [libvirt] 02/03: apprarmor: unbreak lbvirt invoking qemu-bridge-helpers

Guido Guenther agx at moszumanska.debian.org
Fri Mar 17 10:57:47 UTC 2017


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

agx pushed a commit to branch debian/sid
in repository libvirt.

commit 21bc332f95a5ff377f9ed424c5f1b4b35f757966
Author: Guido Günther <agx at sigxcpu.org>
Date:   Fri Mar 17 11:19:47 2017 +0100

    apprarmor: unbreak lbvirt invoking qemu-bridge-helpers
---
 ...mor-allow-usr-lib-qemu-qemu-bridge-helper.patch | 31 ++++++++++++++++++++++
 debian/patches/series                              |  3 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/debian/patches/apparmor-allow-usr-lib-qemu-qemu-bridge-helper.patch b/debian/patches/apparmor-allow-usr-lib-qemu-qemu-bridge-helper.patch
new file mode 100644
index 0000000..77691a5
--- /dev/null
+++ b/debian/patches/apparmor-allow-usr-lib-qemu-qemu-bridge-helper.patch
@@ -0,0 +1,31 @@
+From: =?utf-8?q?Guido_G=C3=BCnther?= <agx at sigxcpu.org>
+Date: Thu, 16 Mar 2017 17:50:33 +0100
+Subject: apparmor: allow /usr/lib/qemu/qemu-bridge-helper
+
+This unbreaks e.g. gnome-boxes
+---
+ examples/apparmor/usr.sbin.libvirtd | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/examples/apparmor/usr.sbin.libvirtd b/examples/apparmor/usr.sbin.libvirtd
+index c40930b..ef241a5 100644
+--- a/examples/apparmor/usr.sbin.libvirtd
++++ b/examples/apparmor/usr.sbin.libvirtd
+@@ -67,7 +67,7 @@
+   # allow changing to our UUID-based named profiles
+   change_profile -> @{LIBVIRT}-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*-[0-9a-f]*,
+ 
+-  /usr/{lib,libexec}/qemu-bridge-helper Cx -> qemu_bridge_helper,
++  /usr/{lib,lib64,lib/qemu,libexec}/qemu-bridge-helper Cx -> qemu_bridge_helper,
+   # child profile for bridge helper process
+   profile qemu_bridge_helper {
+    #include <abstractions/base>
+@@ -83,7 +83,7 @@
+    /etc/qemu/** r,
+    owner @{PROC}/*/status r,
+ 
+-   /usr/{lib,libexec}/qemu-bridge-helper rmix,
++   /usr/{lib,lib64,lib/qemu,libexec}/qemu-bridge-helper rmix,
+   }
+   
+   # Site-specific additions and overrides. See local/README for details.
diff --git a/debian/patches/series b/debian/patches/series
index 106799c..accd2ed 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -20,4 +20,5 @@ test-posix_openpt-don-t-fail-on-EACCESS.patch
 Disable-use-of-namespaces-by-default.patch
 debian/Debianize-virtlogd.patch
 CVE-2017-2635-qemu-Don-t-update-physical-storage-size-of-.patch
-qemu-allow-QMP-probing-of-CPU-definitions-to-fail.patch
+apparmor-allow-usr-lib-qemu-qemu-bridge-helper.patch
+qemu-skip-QMP-probing-of-CPU-definitions-when-missing.patch

-- 
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