[CRIU] [PATCH 2/3] tun: Set net ns before opening master

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 21 16:26:25 MSK 2018


On Fri, Sep 21, 2018 at 02:22:50PM +0100, Dmitry Safonov wrote:
> 2018-09-21 9:41 GMT+01:00 Cyrill Gorcunov <gorcunov at gmail.com>:
> > Opening tun device is tricky: the net device
> > is allocated from current net namespace, thus
> > we should set it first, otherwise all tuns
> > which live in nested net namespace get moved
> > to the toplevel one.
> >
> > Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
> 
> Sorry about non-fun question, but is it possible to create
> a test for that?

Yes, I was about to make so once my patches for
tests are applied.


More information about the CRIU mailing list