This commit is contained in:
parent
b394ac44b4
commit
c1dd898021
|
@ -23,7 +23,8 @@ func setNamespace(cmd *exec.Cmd) {
|
|||
// XXX: keep move with Go 1.4 and later's
|
||||
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{}
|
||||
cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER | syscall.CLONE_NEWNS | syscall.CLONE_NEWUTS | syscall.CLONE_NEWPID | syscall.CLONE_NEWIPC | syscall.CLONE_NEWNET
|
||||
//cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER | syscall.CLONE_NEWNS | syscall.CLONE_NEWUTS | syscall.CLONE_NEWPID | syscall.CLONE_NEWIPC | syscall.CLONE_NEWNET
|
||||
cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER | syscall.CLONE_NEWNS | syscall.CLONE_NEWUTS | syscall.CLONE_NEWPID | syscall.CLONE_NEWIPC /* | syscall.CLONE_NEWNET */
|
||||
cmd.SysProcAttr.Credential = &syscall.Credential{
|
||||
Uid: 0,
|
||||
Gid: 0,
|
||||
|
|
Loading…
Reference in New Issue