gvisor/pkg/sentry/control
Daniel Dao 306a9477da
return root pids with runsc ps
`runsc ps` currently return pid for a task's immediate pid namespace,
which is confusing when there're multiple pid namespaces. We should
return only pids in the root namespace.

Before:

```
1000      1         0         0         ?         02:24     250ms     chrome
1000      1         0         0         ?         02:24     40ms      dumb-init
1000      1         0         0         ?         02:24     240ms     chrome
1000      2         1         0         ?         02:24     2.78s     node
```

After:

```
UID       PID       PPID      C         TTY       STIME     TIME      CMD
1000      1         0         0         ?         12:35     0s        dumb-init
1000      2         1         7         ?         12:35     240ms     node
1000      13        2         21        ?         12:35     2.33s     chrome
1000      27        13        3         ?         12:35     260ms     chrome
```

Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
2021-02-24 15:20:43 +00:00
..
BUILD Simplify FD handling for container start/exec 2020-09-04 11:42:02 -07:00
control.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
logging.go Internal change. 2020-06-17 15:10:40 -07:00
pprof.go Add benchmarks targets to BuildKite. 2021-01-05 13:21:54 -08:00
proc.go return root pids with runsc ps 2021-02-24 15:20:43 +00:00
proc_test.go Implement TTY field in control.Processes(). 2019-12-06 14:34:13 -08:00
state.go Do not check for reference leaks after saving. 2020-12-14 10:47:01 -08:00