[CRIU] [PATCH 09/16] servicefd: add a service fd for current root

Pavel Emelyanov xemul at parallels.com
Wed Apr 9 08:01:16 PDT 2014


On 04/09/2014 03:35 AM, Andrey Vagin wrote:

> @@ -1798,8 +1800,9 @@ int mntns_collect_root(pid_t pid)
>  	}
>  
>  set_root:
> -	mntns_root = fd;
> -	return 0;
> +	mntns_root = install_service_fd(ROOT_FD_OFF, fd);

Remove the static mntns_root at all then.

> +	close(fd);
> +	return mntns_root >= 0 ? 0 : -1;
>  }
>  
>  struct ns_desc mnt_ns_desc = NS_DESC_ENTRY(CLONE_NEWNS, "mnt");
> 




More information about the CRIU mailing list