diff options
author | Ting-Yu Wang <anivia@google.com> | 2020-03-09 19:57:35 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-09 19:59:09 -0700 |
commit | b36de6e7be0542b410901d3cbcd1b3c0fc493cf5 (patch) | |
tree | 403282c17f58f6535136639b19b30a0209913ec1 /pkg/sentry/fsimpl/proc/task.go | |
parent | 2446161b3faa352bf28dc83e338f10967f0224c2 (diff) |
Move /proc/net to /proc/PID/net, and make /proc/net -> /proc/self/net.
Issue #1833
PiperOrigin-RevId: 299998105
Diffstat (limited to 'pkg/sentry/fsimpl/proc/task.go')
-rw-r--r-- | pkg/sentry/fsimpl/proc/task.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/proc/task.go b/pkg/sentry/fsimpl/proc/task.go index c0d643f51..493acbd1b 100644 --- a/pkg/sentry/fsimpl/proc/task.go +++ b/pkg/sentry/fsimpl/proc/task.go @@ -57,6 +57,7 @@ func newTaskInode(inoGen InoGenerator, task *kernel.Task, pidns *kernel.PIDNames "maps": newTaskOwnedFile(task, inoGen.NextIno(), 0444, &mapsData{task: task}), //"mountinfo": seqfile.NewSeqFileInode(t, &mountInfoFile{t: t}, msrc), //"mounts": seqfile.NewSeqFileInode(t, &mountsFile{t: t}, msrc), + "net": newTaskNetDir(task, inoGen), "ns": newTaskOwnedDir(task, inoGen.NextIno(), 0511, map[string]*kernfs.Dentry{ "net": newNamespaceSymlink(task, inoGen.NextIno(), "net"), "pid": newNamespaceSymlink(task, inoGen.NextIno(), "pid"), |