Internal change.

PiperOrigin-RevId: 366462448
This commit is contained in:
gVisor bot
2021-04-02 09:58:19 -07:00
parent b2ea37401e
commit cc762235ce
6 changed files with 145 additions and 2 deletions
+1
View File
@@ -488,6 +488,7 @@ func (fd *regularFileFD) Seek(ctx context.Context, offset int64, whence int32) (
// ConfigureMMap implements vfs.FileDescriptionImpl.ConfigureMMap.
func (fd *regularFileFD) ConfigureMMap(ctx context.Context, opts *memmap.MMapOpts) error {
file := fd.inode().impl.(*regularFile)
opts.SentryOwnedContent = true
return vfs.GenericConfigureMMap(&fd.vfsfd, file, opts)
}