diff --git a/e350826c-python-fix-fd-passing.patch b/e350826c-python-fix-fd-passing.patch new file mode 100644 index 0000000..ea9289b --- /dev/null +++ b/e350826c-python-fix-fd-passing.patch @@ -0,0 +1,26 @@ +commit e350826c653b20dd271ab99075d2f224c7451356 +Author: Marian Neagul +Date: Tue Oct 22 16:03:39 2013 +0100 + + python: Fix Create*WithFiles filefd passing + + Commit d76227be added functions virDomainCreateWithFiles and + virDomainCreateXMLWithFiles, but there was a little piece missing in + python bindings. This patch fixes proper passing of file descriptors + in the overwrites of these functions. + +Index: libvirt-1.1.2/python/libvirt-override.c +=================================================================== +--- libvirt-1.1.2.orig/python/libvirt-override.c ++++ libvirt-1.1.2/python/libvirt-override.c +@@ -7149,6 +7149,10 @@ libvirt_virDomainCreateXMLWithFiles(PyOb + + if (libvirt_intUnwrap(pyfd, &fd) < 0) + goto cleanup; ++ ++ files[i] = fd; ++ ++ files[i] = fd; + } + + LIBVIRT_BEGIN_ALLOW_THREADS; diff --git a/libvirt.changes b/libvirt.changes index af34c24..c8e51d8 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 22 21:37:08 MDT 2013 - jfehlig@suse.com + +- Fix file descriptor passing in python bindings + e350826c-python-fix-fd-passing.patch + rhb#1021434 + ------------------------------------------------------------------- Tue Oct 22 14:37:08 MDT 2013 - cbosdonnat@suse.com diff --git a/libvirt.spec b/libvirt.spec index 71ede12..6cb823a 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -420,6 +420,7 @@ Patch13: 3e2f27e1-CVE-2013-4400.patch Patch14: 5a0ea4b7-CVE-2013-4400.patch Patch15: 843bdb2f-CVE-2013-4400.patch Patch16: bd773e74-lxc-terminate-machine.patch +Patch17: e350826c-python-fix-fd-passing.patch # Need to go upstream Patch100: xen-name-for-devid.patch Patch101: clone.patch @@ -948,6 +949,7 @@ of recent versions of Linux (and other OSes). %patch14 -p1 %patch15 -p1 %patch16 -p1 +%patch17 -p1 %patch100 -p1 %patch101 %patch102 -p1