[CRIU] [PATCH] mount: restore cwd in open_mountpoint()

Cyrill Gorcunov gorcunov at gmail.com
Thu Apr 2 06:34:24 PDT 2015


On Thu, Apr 02, 2015 at 03:47:26PM +0300, Andrey Vagin wrote:
> setns(fd, CLONE_NEWNS) resets cwd and root, so we need to
> restore them back.
> 
> Without this patch stats-dump isn't saved in the work dir:
> -rw-r--r-- 1 root root 32 Apr  2 14:21 /stats-dump
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>


More information about the CRIU mailing list