diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-21 11:03:53 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-22 16:40:45 +0200 |
| commit | c31f96a8c65c0757078ea77218905c73fc1068d4 (patch) | |
| tree | fc68a43058ed05e9604514c67240f6a4fa0b25ed /vm/gvisor/gvisor.go | |
| parent | 14e6c472f54ac36d5bdfe451371c619953eb0a17 (diff) | |
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.
Diffstat (limited to 'vm/gvisor/gvisor.go')
| -rw-r--r-- | vm/gvisor/gvisor.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
