diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-11-03 23:31:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-03 23:31:47 +0000 |
commit | f6a54ee4845a380062b945373ec597afffb27282 (patch) | |
tree | b17420d083e6495b542daa49b1f854c7c907dc40 /pkg/sentry/fs/proc | |
parent | 25da68ce0722f5dc2c714a62bc047db4d40efd94 (diff) | |
parent | 1cfa8d58f6ffd7202fe445c2986f0366022d46f9 (diff) |
Merge release-20201027.0-63-g1cfa8d58f (automated)
Diffstat (limited to 'pkg/sentry/fs/proc')
-rw-r--r-- | pkg/sentry/fs/proc/sys_net.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/proc/sys_net.go b/pkg/sentry/fs/proc/sys_net.go index e555672ad..52061175f 100644 --- a/pkg/sentry/fs/proc/sys_net.go +++ b/pkg/sentry/fs/proc/sys_net.go @@ -86,9 +86,9 @@ func (*tcpMemInode) Truncate(context.Context, *fs.Inode, int64) error { } // GetFile implements fs.InodeOperations.GetFile. -func (m *tcpMemInode) GetFile(ctx context.Context, dirent *fs.Dirent, flags fs.FileFlags) (*fs.File, error) { +func (t *tcpMemInode) GetFile(ctx context.Context, dirent *fs.Dirent, flags fs.FileFlags) (*fs.File, error) { flags.Pread = true - return fs.NewFile(ctx, dirent, flags, &tcpMemFile{tcpMemInode: m}), nil + return fs.NewFile(ctx, dirent, flags, &tcpMemFile{tcpMemInode: t}), nil } // +stateify savable |