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