summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/memmap/memmap.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-04-02 09:56:13 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-02 09:58:19 -0700
commitcc762235ce823fd58d79d1866bc8ab390120fb89 (patch)
treeb8aef67e29b14b440f8aed8f856a8fed685c7f95 /pkg/sentry/memmap/memmap.go
parentb2ea37401ed41b45f5497d04ab4f837a05204f8a (diff)
Internal change.
PiperOrigin-RevId: 366462448
Diffstat (limited to 'pkg/sentry/memmap/memmap.go')
-rw-r--r--pkg/sentry/memmap/memmap.go5
1 files changed, 5 insertions, 0 deletions
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.