From c31f96a8c65c0757078ea77218905c73fc1068d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 Jun 2018 11:03:53 +0200 Subject: executor: rework fallback coverage We have fallback coverage implmentation for freebsd. 1. It's broken after some recent changes. 2. We need it for fuchsia, windows, akaros, linux too. 3. It's painful to work with C code. Move fallback coverage to ipc package, fix it and provide for all OSes. --- vm/gvisor/gvisor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/gvisor') diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go index acd04a4e7..eaef58969 100644 --- a/vm/gvisor/gvisor.go +++ b/vm/gvisor/gvisor.go @@ -216,7 +216,7 @@ func (inst *instance) Copy(hostSrc string) (string, error) { func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command string) ( <-chan []byte, <-chan error, error) { - args := []string{"exec"} + args := []string{"exec", "-user=0:0"} for _, c := range sandboxCaps { args = append(args, "-cap", c) } -- cgit mrf-deployment