Fix virsh dominfo crash when no security driver is configured
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=45
This commit is contained in:
parent
642dcc0690
commit
0aa1caddc0
26
fix-no-secdriver.patch
Normal file
26
fix-no-secdriver.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
commit b7a7b3365145f6e9e434a3265a58666cd2e6d8dd
|
||||||
|
Author: Guido Günther <agx@sigxcpu.org>
|
||||||
|
Date: Wed Mar 17 21:04:11 2010 +0100
|
||||||
|
|
||||||
|
Don't crash without a security driver
|
||||||
|
|
||||||
|
"virsh dominfo <vm>" crashes if there's no primary security driver set
|
||||||
|
since we only intialize the secmodel.model and secmodel.doi if we have
|
||||||
|
one. Attached patch checks for securityPrimaryDriver instead of
|
||||||
|
securityDriver since the later is always set in qemudSecurityInit().
|
||||||
|
|
||||||
|
Closes: http://bugs.debian.org/574359
|
||||||
|
|
||||||
|
Index: libvirt-0.7.7/src/qemu/qemu_driver.c
|
||||||
|
===================================================================
|
||||||
|
--- libvirt-0.7.7.orig/src/qemu/qemu_driver.c
|
||||||
|
+++ libvirt-0.7.7/src/qemu/qemu_driver.c
|
||||||
|
@@ -4901,7 +4901,7 @@ static int qemudNodeGetSecurityModel(vir
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
|
qemuDriverLock(driver);
|
||||||
|
- if (!driver->securityDriver) {
|
||||||
|
+ if (!driver->securityPrimaryDriver) {
|
||||||
|
memset(secmodel, 0, sizeof (*secmodel));
|
||||||
|
goto cleanup;
|
||||||
|
}
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 26 17:20:11 MDT 2010 - jfehlig@novell.com
|
||||||
|
|
||||||
|
- Fix 'virsh dominfo' crash when no security driver is configured
|
||||||
|
fix-no-secdriver.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 21 21:20:17 MST 2010 - jfehlig@novell.com
|
Sun Mar 21 21:20:17 MST 2010 - jfehlig@novell.com
|
||||||
|
|
||||||
|
@ -140,6 +140,7 @@ Source1: libvirtd.init
|
|||||||
# Upstream patches
|
# Upstream patches
|
||||||
Patch0: xen-name-for-devid.patch
|
Patch0: xen-name-for-devid.patch
|
||||||
Patch1: lxc-cgroup.patch
|
Patch1: lxc-cgroup.patch
|
||||||
|
Patch2: fix-no-secdriver.patch
|
||||||
# Need to go upstream
|
# Need to go upstream
|
||||||
Patch100: socat.patch
|
Patch100: socat.patch
|
||||||
Patch101: clone.patch
|
Patch101: clone.patch
|
||||||
@ -256,6 +257,7 @@ Authors:
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101
|
%patch101
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
|
Loading…
Reference in New Issue
Block a user