summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/options.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-09-23 22:40:10 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-23 22:41:40 -0700
commit6410e74a9602ecb92813375f45b953ab813cf313 (patch)
treecbdbfba7884959b944dc85660b52f3431cb966b0 /pkg/sentry/vfs/options.go
parent08bbad690764dd55e333cade340d779df93de920 (diff)
Add more descriptive comments on mount options.
PiperOrigin-RevId: 333447255
Diffstat (limited to 'pkg/sentry/vfs/options.go')
-rw-r--r--pkg/sentry/vfs/options.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/sentry/vfs/options.go b/pkg/sentry/vfs/options.go
index b33d36cb1..413cfb101 100644
--- a/pkg/sentry/vfs/options.go
+++ b/pkg/sentry/vfs/options.go
@@ -103,8 +103,10 @@ type MountOptions struct {
// GetFilesystemOptions contains options to FilesystemType.GetFilesystem().
GetFilesystemOptions GetFilesystemOptions
- // If InternalMount is true, allow the use of filesystem types for which
- // RegisterFilesystemTypeOptions.AllowUserMount == false.
+ // InternalMount indicates whether the mount operation is coming from the
+ // application, i.e. through mount(2). If InternalMount is true, allow the use
+ // of filesystem types for which RegisterFilesystemTypeOptions.AllowUserMount
+ // == false.
InternalMount bool
}