From cc762235ce823fd58d79d1866bc8ab390120fb89 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Fri, 2 Apr 2021 09:56:13 -0700 Subject: Internal change. PiperOrigin-RevId: 366462448 --- pkg/sentry/fsimpl/tmpfs/regular_file.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry/fsimpl/tmpfs') diff --git a/pkg/sentry/fsimpl/tmpfs/regular_file.go b/pkg/sentry/fsimpl/tmpfs/regular_file.go index cd849e87e..c45bddff6 100644 --- a/pkg/sentry/fsimpl/tmpfs/regular_file.go +++ b/pkg/sentry/fsimpl/tmpfs/regular_file.go @@ -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) } -- cgit v1.2.3