[CRIU] [PATCH 09/10] net: add a way to get a network namespace for a socket
    Pavel Emelyanov 
    xemul at virtuozzo.com
       
    Mon Feb 13 05:17:48 PST 2017
    
    
  
> @@ -762,7 +763,7 @@ int set_netns(uint32_t ns_id)
>  		pr_err("Unable to find a network namespace");
>  		return -1;
>  	}
> -	nsfd = open_proc(root_item->pid->ns[0].virt, "fd/%d", ns->net.ns_fd);
> +	nsfd = fdstore_get(ns->net.nsfd_id);
Ah... run away hunk from patch number ... 7? ;)
>  	if (nsfd < 0)
>  		return -1;
>  	if (setns(nsfd, CLONE_NEWNET)) {
> 
    
    
More information about the CRIU
mailing list