diff options
author | Jamie Liu <jamieliu@google.com> | 2021-07-28 16:39:15 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-07-28 16:41:35 -0700 |
commit | 72c2b74ac3c145818e994326775d503d6ba0e368 (patch) | |
tree | 6f44406a96449e80078fb961000392b1b4165fb8 /pkg/sentry/fsimpl/proc/BUILD | |
parent | 01f7dd442bd64dce8f47714fdcc5a11a75be00d3 (diff) |
Add Uid/Gid/Groups fields to VFS2 /proc/[pid]/status.
For comparison:
```
$ docker run --rm -it ubuntu:focal bash -c 'cat /proc/self/status'
Name: cat
Umask: 0022
State: R (running)
Tgid: 1
Ngid: 0
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 64
Groups:
NStgid: 1
NSpid: 1
NSpgid: 1
NSsid: 1
VmPeak: 2660 kB
VmSize: 2660 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 528 kB
VmRSS: 528 kB
...
$ docker run --runtime=runsc-vfs2 --rm -it ubuntu:focal bash -c 'cat /proc/self/status'
Name: cat
State: R (running)
Tgid: 1
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 4
Groups:
VmSize: 10708 kB
VmRSS: 3124 kB
VmData: 316 kB
...
```
Fixes #6374
PiperOrigin-RevId: 387465655
Diffstat (limited to 'pkg/sentry/fsimpl/proc/BUILD')
0 files changed, 0 insertions, 0 deletions