diff options
Diffstat (limited to 'recipes-extended/libvirt')
| -rw-r--r-- | recipes-extended/libvirt/libvirt/qemu-fix-crash-in-qemuOpen.patch | 39 | ||||
| -rw-r--r-- | recipes-extended/libvirt/libvirt_1.0.3.bb | 5 |
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 @@ | |||
| 1 | From 74bff2509080912ea8abf1de8fd95fa2412b659a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com> | ||
| 3 | Date: Thu, 11 Apr 2013 11:37:25 +0200 | ||
| 4 | Subject: [PATCH] qemu: fix crash in qemuOpen | ||
| 5 | |||
| 6 | commit 74bff2509080912ea8abf1de8fd95fa2412b659a from upsteam | ||
| 7 | git://libvirt.org/libvirt.git | ||
| 8 | |||
| 9 | If the path part of connection URI is not present, cfg is used | ||
| 10 | unitialized. | ||
| 11 | |||
| 12 | https://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 | |||
| 17 | diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c | ||
| 18 | index 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 | -- | ||
| 38 | 1.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" | |||
| 3 | LICENSE = "GPLv2+" | 3 | LICENSE = "GPLv2+" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fb919cc88dbe06ec0b0bd50e001ccf1f" |
| 5 | SECTION = "console/tools" | 5 | SECTION = "console/tools" |
| 6 | PR = "r6" | 6 | PR = "r7" |
| 7 | 7 | ||
| 8 | DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux e2fsprogs pm-utils \ | 8 | DEPENDS = "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" | |||
| 25 | SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz \ | 25 | SRC_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 | ||
| 30 | SRC_URI[md5sum] = "3d9f85d586c9aa3d819b626622f3fc97" | 31 | SRC_URI[md5sum] = "3d9f85d586c9aa3d819b626622f3fc97" |
| 31 | SRC_URI[sha256sum] = "f64f4acd7cdcfc6ab5e803195ed58b949f262b54e3659d8c37b33f0fec112757" | 32 | SRC_URI[sha256sum] = "f64f4acd7cdcfc6ab5e803195ed58b949f262b54e3659d8c37b33f0fec112757" |
