runc/nsinit
Michael Crosby 339edce03e Update console and mount handling for user namespaces
This updates the console handling to chown the console on creation to
the root user within the container.

This also moves the setup mounts from the userns sidecar process into
the main init processes by trying to mknod devices, if it fails on an
EPERM then bind mount the device from the host into the container for
use.  This prevents access issues when the sidecar process mknods the
device for the usernamespace returning an EPERM when writting to
dev/null.

This also adds some error handling for init processes and nsinit updates
with added flags for testing and other functions.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-02-17 21:37:02 -08:00
..
Makefile nsinit: Add Makefile 2014-12-16 09:18:48 +03:00
config.go Update console and mount handling for user namespaces 2015-02-17 21:37:02 -08:00
exec.go Update console and mount handling for user namespaces 2015-02-17 21:37:02 -08:00
init.go Update console and mount handling for user namespaces 2015-02-17 21:37:02 -08:00
main.go Merge branch 'master' into api 2015-02-16 15:09:42 -08:00
oom.go Fix compilation with golang 1.3(uid/gid mappings is unsupported) 2015-02-12 13:28:07 -08:00
pause.go Refactory container interface 2015-01-31 20:51:12 -08:00
state.go Implement nsinit state command 2015-02-11 18:49:28 -08:00
stats.go Implement nsinit state command 2015-02-11 18:49:28 -08:00
tty.go Update console and mount handling for user namespaces 2015-02-17 21:37:02 -08:00
utils.go Add factory configuration via functional api 2015-02-16 11:26:13 -08:00