diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-23 23:37:23 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-23 23:37:23 +0000 |
commit | 889487928af61ef0544f8bec6c3d35fd423905c3 (patch) | |
tree | 28dfaeea4ae4bc04e016061ca36c6798ad03f43b /pkg/sentry/vfs/options.go | |
parent | 1d05051701a6f92a093b8948b58f4bf2128eebdd (diff) | |
parent | 5e34ee68c93888eba3d56a2b713dbeebf406efa3 (diff) |
Merge release-20200622.1-206-g5e34ee68c (automated)
Diffstat (limited to 'pkg/sentry/vfs/options.go')
-rw-r--r-- | pkg/sentry/vfs/options.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/options.go b/pkg/sentry/vfs/options.go index f223aeda8..d37208a1f 100644 --- a/pkg/sentry/vfs/options.go +++ b/pkg/sentry/vfs/options.go @@ -79,6 +79,17 @@ type MountFlags struct { // NoATime is equivalent to MS_NOATIME and indicates that the // filesystem should not update access time in-place. NoATime bool + + // NoDev is equivalent to MS_NODEV and indicates that the + // filesystem should not allow access to devices (special files). + // TODO(gVisor.dev/issue/3186): respect this flag in non FUSE + // filesystems. + NoDev bool + + // NoSUID is equivalent to MS_NOSUID and indicates that the + // filesystem should not honor set-user-ID and set-group-ID bits or + // file capabilities when executing programs. + NoSUID bool } // MountOptions contains options to VirtualFilesystem.MountAt(). |