Re: libvirt python is not correctly passing file descriptors to underlying virDomainCreateWithFiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Attaching just in case the git formated patch.

Attachment: 0001-Fix-FD-passing-to-containers-issue-in-python-binding.patch
Description: Binary data


On Oct 21, 2013, at 8:03 PM, Marian Neagul <marian@xxxxxxxxxxx> wrote:

Dear All,

While working on a component handling container management I stumbled on a bug in the libvirt python bindings: basically the python bindings fail in properly translating the python file descriptor list to a native C array.
The primary symptom was that inside the container the file descriptors are created but mapped to '/dev/null' instead of the original file descriptors

This problem was discovered in libvirt 1.1.2 but the problem exists also in the current git head.

I'm attaching a simple patch fixing the bug, and re-establishing the expected behaviour.
I've also opened a bugzilla issue at https://bugzilla.redhat.com/show_bug.cgi?id=1021434

I hope this fix is acceptable and that it can be incorporated in the code base. :)

Marian  
<libvirt-python-fix-lxc-fd-passing.patch>

~~~~~~~~~~~~~~~
Marian Neagul
Universitatea de Vest din Timisoara
Facultatea de Matematică și Informatică
Centrul de Cercetare in Informatica




~~~~~~~~~~~~~~~
Marian Neagul
Universitatea de Vest din Timisoara
Facultatea de Matematică și Informatică
Centrul de Cercetare in Informatica


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]