summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/options.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-14 02:01:38 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-14 02:01:38 +0000
commit21ccea6ecc8a88a8ace0875f83633a7ccdacd8bc (patch)
tree54afd8bbd7e80a9c92730ae36a74d85238d0ab47 /pkg/sentry/vfs/options.go
parentb692574b021c301ee94f55537f9b3ee51485d55f (diff)
parenta6024f7f5f6f438c11e30be0f93657b1956fd5ba (diff)
Merge release-20200211.0-15-ga6024f7 (automated)
Diffstat (limited to 'pkg/sentry/vfs/options.go')
-rwxr-xr-xpkg/sentry/vfs/options.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/options.go b/pkg/sentry/vfs/options.go
index b7774bf28..fdf8be157 100755
--- a/pkg/sentry/vfs/options.go
+++ b/pkg/sentry/vfs/options.go
@@ -72,6 +72,11 @@ type OpenOptions struct {
// If FilesystemImpl.OpenAt() creates a file, Mode is the file mode for the
// created file.
Mode linux.FileMode
+
+ // FileExec is set when the file is being opened to be executed.
+ // VirtualFilesystem.OpenAt() checks that the caller has execute permissions
+ // on the file, and that the file is a regular file.
+ FileExec bool
}
// ReadOptions contains options to FileDescription.PRead(),