[CRIU] Re: [PATCH 5/6] tty: Restore orphan slavery peers

Pavel Emelyanov xemul at parallels.com
Fri Sep 14 07:12:56 EDT 2012


On 09/14/2012 02:38 PM, Cyrill Gorcunov wrote:
> 
> In case if there is no master peer associated
> with a slave peer we have two cases
> 
>  - the master peer was closed before slave
>  - we just have no master peer at all, but
>    only slave one

Remove the 2nd case from patch. It should be implemented with
Andrey's non-existing sids/pgids.

> In first case we just create a fake master peer
> and connect slaves on it.
> 
> The second case is a bit more complex. Because
> we have no master peer -- it means the slaves
> are connected to some external master peer which
> doesn't belong us. In a sake of security in such
> case a user must provide "--ext-tty" option on
> restore granting the program to connect to existing
> external master peer.
> 
> Suggested-by: Andrey Vagin <avagin at openvz.org>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  cr-restore.c      |    4 +
>  crtools.c         |    4 +
>  include/crtools.h |    1 +
>  include/tty.h     |    1 +
>  tty.c             |  165 +++++++++++++++++++++++++++++++++++++++++++++++++++--
>  5 files changed, 169 insertions(+), 6 deletions(-)
> 



More information about the CRIU mailing list