This commit is contained in:
Liang Ding 2014-12-22 22:39:54 +08:00
parent e08eaecf81
commit 15d2d6523c
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func setNamespace(cmd *exec.Cmd) {
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_NEWUTS | syscall.CLONE_NEWPID | syscall.CLONE_NEWIPC /* | syscall.CLONE_NEWNS | syscall.CLONE_NEWNET */
cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER | syscall.CLONE_NEWUTS | syscall.CLONE_NEWPID | syscall.CLONE_NEWIPC | syscall.CLONE_NEWNS
cmd.SysProcAttr.Credential = &syscall.Credential{
Uid: 0,
Gid: 0,