pkg/libcontainer/nsinit
Tianon Gravi c54bc4ca04 Remove "root" and "" special cases in libcontainer
These are unnecessary since the user package handles these cases properly already (as evidenced by the LXC backend not having these special cases).

I also updated the errors returned to match the other libcontainer error messages in this same file.

Also, switching from Setresuid to Setuid directly isn't a problem, because the "setuid" system call will automatically do that if our own effective UID is root currently: (from `man 2 setuid`)

    setuid() sets the effective user ID of the calling process.  If the
    effective UID of the caller is root, the real UID and saved set-user-
    ID are also set.

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-04-28 16:46:03 -06:00
..
nsinit libcontainer: remove duplicate imports 2014-03-18 16:25:26 -07:00
command.go Add ability to work with individual namespaces 2014-03-21 00:23:34 +00:00
exec.go Move raw cgroups into fs package (filesystem) 2014-04-18 21:34:26 -07:00
execin.go Refactor mounts into pkg to make changes easier 2014-04-24 10:35:20 -07:00
init.go Remove "root" and "" special cases in libcontainer 2014-04-28 16:46:03 -06:00
nsinit.go Add initial logging to libcontainer 2014-03-14 09:55:05 -07:00
state.go Ensure a reliable way to kill ghost containers on reboot 2014-04-01 07:11:41 +00: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