moby--moby/pkg/libcontainer/nsinit
Alexander Larsson 5c9b28db18 libcontainer: Don't use UsetCloseOnExec, it is racy
We can't keep file descriptors without close-on-exec except with
syscall.ForkLock held, as otherwise they could leak by accident into
other children from forks in other threads.

Instead we just use Cmd.ExtraFiles which handles all this for us.

This fixes https://github.com/dotcloud/docker/issues/4493

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-03-06 14:10:32 +01:00
..
nsinit Fix cross compile for make cross 2014-02-25 15:19:13 -08:00
command.go libcontainer: Don't use UsetCloseOnExec, it is racy 2014-03-06 14:10:32 +01:00
exec.go libcontainer: Don't use UsetCloseOnExec, it is racy 2014-03-06 14:10:32 +01:00
execin.go Factor out finalize namespace 2014-03-03 12:15:47 -08:00
init.go Some cleanup around logs 2014-03-05 13:50:49 -08:00
mount.go libcontainer: Use MS_PRIVATE instead of MS_SLAVE 2014-03-05 09:40:54 +01:00
nsinit.go Refactor and improve libcontainer and driver 2014-02-24 21:11:52 -08:00
state.go Move container.json and pid file into a root specific driver dir 2014-02-25 12:41:31 -08:00
sync_pipe.go libcontainer: Don't use UsetCloseOnExec, it is racy 2014-03-06 14:10:32 +01:00
term.go Refactor driver to use Exec function from nsini 2014-02-22 01:21:26 -08:00
unsupported.go Fix cross compile for make cross 2014-02-25 15:19:13 -08:00