summaryrefslogtreecommitdiffstats
path: root/recipes-extended/libvirt
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/libvirt')
-rw-r--r--recipes-extended/libvirt/libvirt/qemu-fix-crash-in-qemuOpen.patch39
-rw-r--r--recipes-extended/libvirt/libvirt_1.0.3.bb5
2 files changed, 42 insertions, 2 deletions
diff --git a/recipes-extended/libvirt/libvirt/qemu-fix-crash-in-qemuOpen.patch b/recipes-extended/libvirt/libvirt/qemu-fix-crash-in-qemuOpen.patch
new file mode 100644
index 00000000..3cf9e839
--- /dev/null
+++ b/recipes-extended/libvirt/libvirt/qemu-fix-crash-in-qemuOpen.patch
@@ -0,0 +1,39 @@
1From 74bff2509080912ea8abf1de8fd95fa2412b659a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
3Date: Thu, 11 Apr 2013 11:37:25 +0200
4Subject: [PATCH] qemu: fix crash in qemuOpen
5
6commit 74bff2509080912ea8abf1de8fd95fa2412b659a from upsteam
7git://libvirt.org/libvirt.git
8
9If the path part of connection URI is not present, cfg is used
10unitialized.
11
12https://bugzilla.redhat.com/show_bug.cgi?id=950855
13---
14 src/qemu/qemu_driver.c | 2 +-
15 1 files changed, 1 insertions(+), 1 deletions(-)
16
17diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
18index 2c0d7d1..0d41e39 100644
19--- a/src/qemu/qemu_driver.c
20+++ b/src/qemu/qemu_driver.c
21@@ -1026,6 +1026,7 @@ static virDrvOpenStatus qemuOpen(virConnectPtr conn,
22 goto cleanup;
23 }
24
25+ cfg = virQEMUDriverGetConfig(qemu_driver);
26 if (conn->uri->path == NULL) {
27 virReportError(VIR_ERR_INTERNAL_ERROR,
28 _("no QEMU URI path given, try %s"),
29@@ -1033,7 +1034,6 @@ static virDrvOpenStatus qemuOpen(virConnectPtr conn,
30 goto cleanup;
31 }
32
33- cfg = virQEMUDriverGetConfig(qemu_driver);
34 if (cfg->privileged) {
35 if (STRNEQ(conn->uri->path, "/system") &&
36 STRNEQ(conn->uri->path, "/session")) {
37--
381.7.1
39
diff --git a/recipes-extended/libvirt/libvirt_1.0.3.bb b/recipes-extended/libvirt/libvirt_1.0.3.bb
index 768ccc8d..845baf5a 100644
--- a/recipes-extended/libvirt/libvirt_1.0.3.bb
+++ b/recipes-extended/libvirt/libvirt_1.0.3.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://libvirt.org"
3LICENSE = "GPLv2+" 3LICENSE = "GPLv2+"
4LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f" 4LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f"
5SECTION = "console/tools" 5SECTION = "console/tools"
6PR = "r6" 6PR = "r7"
7 7
8DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \ 8DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \
9 iptables ebtables dnsmasq readline" 9 iptables ebtables dnsmasq readline"
@@ -25,7 +25,8 @@ RCONFLICTS_${PN}_libvirtd = "connman"
25SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz \ 25SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz \
26 file://libvirt-1.0.3-fix-thread-safety-in-lxc-callback-handling.patch \ 26 file://libvirt-1.0.3-fix-thread-safety-in-lxc-callback-handling.patch \
27 file://libvirtd.sh \ 27 file://libvirtd.sh \
28 file://libvirtd.conf" 28 file://libvirtd.conf \
29 file://qemu-fix-crash-in-qemuOpen.patch "
29 30
30SRC_URI[md5sum] = "3d9f85d586c9aa3d819b626622f3fc97" 31SRC_URI[md5sum] = "3d9f85d586c9aa3d819b626622f3fc97"
31SRC_URI[sha256sum] = "f64f4acd7cdcfc6ab5e803195ed58b949f262b54e3659d8c37b33f0fec112757" 32SRC_URI[sha256sum] = "f64f4acd7cdcfc6ab5e803195ed58b949f262b54e3659d8c37b33f0fec112757"