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

Re: [libvirt] [PATCH] LXC: fix order in virProcessGetNamespaces



On Wed, Jun 05, 2013 at 11:23:07PM +0200, Richard Weinberger wrote:
> virProcessGetNamespaces() opens files in /proc/XXX/ns/ which will
> later be passed to setns().
> We have to make sure that the file descriptors in the array are in the correct
> order. Otherwise setns() may fail.

What is the scenario / cause of the failure ?

> The order has been taken from util-linux's sys-utils/nsenter.c

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


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