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/memmap/memmap.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/sentry/memmap/memmap.go') diff --git a/pkg/sentry/memmap/memmap.go b/pkg/sentry/memmap/memmap.go index 72868646a..610686ea0 100644 --- a/pkg/sentry/memmap/memmap.go +++ b/pkg/sentry/memmap/memmap.go @@ -375,6 +375,11 @@ type MMapOpts struct { // // If Force is true, Unmap and Fixed must be true. Force bool + + // SentryOwnedContent indicates the sentry exclusively controls the + // underlying memory backing the mapping thus the memory content is + // guaranteed not to be modified outside the sentry's purview. + SentryOwnedContent bool } // File represents a host file that may be mapped into an platform.AddressSpace. -- cgit v1.2.3