diff options
author | Rahat Mahmood <rahat@google.com> | 2019-01-18 10:01:08 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-01-18 10:02:12 -0800 |
commit | 8d7c10e90840cfecf53089e7cc3507cac2804fd1 (patch) | |
tree | 59c2890f6f6b08b106f957c8413737f33f173fef /pkg/sentry/fs/proc/proc.go | |
parent | f89085219dca4b3b8a2f1d3ced9aaa232cd79925 (diff) |
Display /proc/net entries for all network configurations.
Most of the entries are stubbed out at the moment, but even those were
only displayed if IPv6 support was enabled. The entries should be
displayed with IPv4-support only, and with only loopback devices.
PiperOrigin-RevId: 229946441
Change-Id: I18afaa3af386322787f91bf9d168ab66c01d5a4c
Diffstat (limited to 'pkg/sentry/fs/proc/proc.go')
-rw-r--r-- | pkg/sentry/fs/proc/proc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/proc/proc.go b/pkg/sentry/fs/proc/proc.go index d1c699418..be04f94af 100644 --- a/pkg/sentry/fs/proc/proc.go +++ b/pkg/sentry/fs/proc/proc.go @@ -83,9 +83,9 @@ func New(ctx context.Context, msrc *fs.MountSource) (*fs.Inode, error) { // If we're using rpcinet we will let it manage /proc/net. if _, ok := p.k.NetworkStack().(*rpcinet.Stack); ok { - contents["net"] = newRPCInetProcNet(ctx, msrc) + p.AddChild(ctx, "net", newRPCInetProcNet(ctx, msrc)) } else { - contents["net"] = p.newNetDir(ctx, msrc) + p.AddChild(ctx, "net", p.newNetDir(ctx, msrc)) } return newProcInode(p, msrc, fs.SpecialDirectory, nil), nil |