[CRIU] Dumping of stream unix connection

Pavel Emelyanov xemul at parallels.com
Fri Jun 5 06:58:24 PDT 2015


>     Yes. The justification is simple -- the server will notice EOF on the socket if we dump it and we
>     may not be able to connect one back on restore.
> 
>     However, I'm OK if someone sends a patch that extends the --ext-unix-sk option with the following
>     semantics:
> 
>     - On dump --ext-unix-sk $id says that the stream/seqpacket socket $id is OK to be disconnected
>     - On restore --ext-unix-sk $id:$path says that socket $id should be connect()-ed to $path. The
>       $path may be absent meaning that the connction should go to the path seen on dump.
> 
>     Note, that this won't work for socketpairs() as they are name-less and cannot be reconnect-ed
>     back. For those only inheriting will work.
> 
> 
> Am I right understood that for socketpair's socket you propose using   "--ext-unix-sk $id (to be impl)" on 
> dump and "inheriting (to be impl too)" for restore?

Yes.

> And thx for explanation.
> 
> 
>     -- Pavel
> 
> 
> 
> 
> -- 
> Best regards,
> Artem Kuzmitskiy
> 



More information about the CRIU mailing list