From 8c689a5d39a41f03204fec490179538352560e65 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 18 Dec 2014 11:40:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- output/outputs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/output/outputs.go b/output/outputs.go index e9e4ead..f5417b9 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -110,12 +110,12 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { 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.Credential = &syscall.Credential{ - Uid: 0, - Gid: 0, + Uid: 1001, + Gid: 1001, } - cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1000, Size: 1}} - cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 0, HostID: 1000, Size: 1}} + cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{ContainerID: 1001, HostID: 1001, Size: 1}} + cmd.SysProcAttr.GidMappings = []syscall.SysProcIDMap{{ContainerID: 1001, HostID: 1001, Size: 1}} stdout, err := cmd.StdoutPipe() if nil != err {