runc/libcontainer/integration
Aleksa Sarai 244c9fc426
*: console rewrite
This implements {createTTY, detach} and all of the combinations and
negations of the two that were previously implemented. There are some
valid questions about out-of-OCI-scope topics like !createTTY and how
things should be handled (why do we dup the current stdio to the
process, and how is that not a security issue). However, these will be
dealt with in a separate patchset.

In order to allow for late console setup, split setupRootfs into the
"preparation" section where all of the mounts are created and the
"finalize" section where we pivot_root and set things as ro. In between
the two we can set up all of the console mountpoints and symlinks we
need.

We use two-stage synchronisation to ensures that when the syscalls are
reordered in a suboptimal way, an out-of-place read() on the parentPipe
will not gobble the ancilliary information.

This patch is part of the console rewrite patchset.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
2016-12-01 15:49:36 +11:00
..
checkpoint_test.go Allow delete of created container 2016-06-02 12:26:12 -07:00
doc.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
exec_test.go Fix all typos found by misspell 2016-10-29 14:14:42 +08:00
execin_test.go *: console rewrite 2016-12-01 15:49:36 +11:00
init_test.go Use fifo for create/start 2016-06-13 11:26:53 -07:00
seccomp_test.go Use fifo for create/start 2016-06-13 11:26:53 -07:00
template_test.go MaskPaths: support directory 2016-09-23 16:14:41 +00:00
utils_test.go move util function 2016-08-19 16:08:06 +08:00