[CRIU] [PATCH 5/6] tty: Restore orphan slavery peers
Cyrill Gorcunov
gorcunov at openvz.org
Fri Sep 14 06:38:42 EDT 2012
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
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(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-tty-Restore-orphan-slavery-peers.patch
Type: text/x-patch
Size: 6887 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120914/549a8983/0005-tty-Restore-orphan-slavery-peers-0001.bin
More information about the CRIU
mailing list