[CRIU] [PATCH 0/5] Add support of external terminals (v2)

Andrey Vagin avagin at openvz.org
Fri Dec 25 06:49:32 PST 2015


From: Andrew Vagin <avagin at virtuozzo.com>

Many users ask us to add support console devices for Docker and LXC.

Consoles are provided through PTYs created on the host and bind-mounted
over the expected devices in the container.

v2: fixes here and there
    don't use the --inherit-fd on dump

Cc: Tycho Andersen <tycho.andersen at canonical.com>
Cc: Ross Boucher <boucher at gmail.com>
Cc: Saied Kazemi <saied at google.com>

Andrew Vagin (5):
  tty: use a pair of dev and rdev to identify a terminal
  crtools: add ability to set list of external resources
  tty: allow to dump and restore external terminals (v2)
  zdtm: add a new test to check inherited tty-s
  test: add a new test to check external terminals

 cr-restore.c           |  2 ++
 crtools.c              | 21 +++++++++++++++
 files.c                | 29 ++++++++++++++++----
 include/cr_options.h   |  6 +++++
 include/files.h        |  3 +++
 include/tty.h          |  6 ++---
 protobuf/tty.proto     |  2 ++
 test/ext-tty/run.py    | 36 +++++++++++++++++++++++++
 test/inhfd/tty.py      | 13 +++++++++
 test/inhfd/tty.py.desc |  1 +
 tty.c                  | 73 +++++++++++++++++++++++++++++++++++++++++++++-----
 11 files changed, 177 insertions(+), 15 deletions(-)
 create mode 100755 test/ext-tty/run.py
 create mode 100755 test/inhfd/tty.py
 create mode 100644 test/inhfd/tty.py.desc

--
2.4.3



More information about the CRIU mailing list