github.com/guilhermebr/docker@v1.4.2-0.20150428121140-67da055cebca/daemon/execdriver/lxc/lxc_init_linux.go (about) 1 package lxc 2 3 import ( 4 "fmt" 5 6 "github.com/docker/libcontainer/utils" 7 ) 8 9 func finalizeNamespace(args *InitArgs) error { 10 if err := utils.CloseExecFrom(3); err != nil { 11 return err 12 } 13 if err := setupUser(args.User); err != nil { 14 return fmt.Errorf("setup user %s", err) 15 } 16 if err := setupWorkingDirectory(args); err != nil { 17 return err 18 } 19 return nil 20 }