[CRIU] Re: [PATCH 6/6] sockets: Add checkpoint restore for file owners

Pavel Emelyanov xemul at parallels.com
Tue Apr 10 05:56:27 EDT 2012


> @@ -1262,6 +1269,9 @@ static int open_unixsk_pair_master(struct unix_sk_info *ui)
>  		return -1;
>  	}
>  
> +	if (restore_fown(getpid(), sk[0], &ui->ue.fown))
> +		return -1;
> +

The fowner for the 2nd end of a socket is missed.

>  	if (restore_socket_queue(sk[0], peer->ue.id))
>  		return -1;
>  	if (restore_socket_queue(sk[1], ui->ue.id))
> @@ -1324,6 +1334,9 @@ static int open_unixsk_standalone(struct unix_sk_info *ui)
>  		return -1;
>  	}
>  
> +	if (restore_fown(getpid(), sk, &ui->ue.fown))
> +		return -1;
> +
>  	if (bind_unix_sk(sk, ui))
>  		return -1;
>  



More information about the CRIU mailing list