[CRIU] [PATCH 0/9] unix: restore sockets in proper mount namespaces

Cyrill Gorcunov gorcunov at gmail.com
Thu Mar 22 14:57:02 MSK 2018


On Fri, Mar 16, 2018 at 08:24:21PM +0300, Andrei Vagin wrote:
> In 4.10 kernel, we added the SIOCUNIXFILE ioctl for unix sockets.  This
> ioctl opens a file to which a socket is bound and returns a file
> descriptor.
> 
> This new ioctl allows us to get mnt_id by reading fdinfo, and mnt_id
> is enough to find a proper mount point and a mount namespace.
> 
> The logic of this series is straight forward. On dump, we save mnt_id for
> sockets, on restore we find a mount namespace by mnt_id and restore this
> socket in its mount namespace.
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>



More information about the CRIU mailing list