1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/execdriver/lxc/lxc_init_linux.go

21 lines
358 B
Go
Raw Normal View History

package lxc
2013-12-18 13:16:26 -05:00
import (
"fmt"
"github.com/docker/libcontainer/utils"
2013-12-18 13:16:26 -05:00
)
func finalizeNamespace(args *InitArgs) error {
if err := utils.CloseExecFrom(3); err != nil {
return err
}
if err := setupUser(args.User); err != nil {
return fmt.Errorf("setup user %s", err)
}
if err := setupWorkingDirectory(args); err != nil {
return err
}
return nil
}