summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/ext/symlink.go
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-10-15 18:39:16 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-15 18:40:45 -0700
commit0457a4c4cb67537b09f47e58764f22434dbeff02 (patch)
treef2891b2aa3e1d7e6ded35a951b9a913d99b55d57 /pkg/sentry/fsimpl/ext/symlink.go
parentf98c3ee32c592417aa84f5c302b9db49f12ba129 (diff)
Minor vfs.FileDescriptionImpl fixes.
- Pass context.Context to OnClose(). - Pass memmap.MMapOpts to ConfigureMMap() by pointer so that implementations can actually mutate it as required. PiperOrigin-RevId: 274934967
Diffstat (limited to 'pkg/sentry/fsimpl/ext/symlink.go')
-rw-r--r--pkg/sentry/fsimpl/ext/symlink.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fsimpl/ext/symlink.go b/pkg/sentry/fsimpl/ext/symlink.go
index e06548a98..bdf8705c1 100644
--- a/pkg/sentry/fsimpl/ext/symlink.go
+++ b/pkg/sentry/fsimpl/ext/symlink.go
@@ -105,7 +105,7 @@ func (fd *symlinkFD) Seek(ctx context.Context, offset int64, whence int32) (int6
return 0, syserror.EBADF
}
-// IterDirents implements vfs.FileDescriptionImpl.IterDirents.
-func (fd *symlinkFD) ConfigureMMap(ctx context.Context, opts memmap.MMapOpts) error {
+// ConfigureMMap implements vfs.FileDescriptionImpl.ConfigureMMap.
+func (fd *symlinkFD) ConfigureMMap(ctx context.Context, opts *memmap.MMapOpts) error {
return syserror.EBADF
}