diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-14 02:01:38 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-14 02:01:38 +0000 |
commit | 21ccea6ecc8a88a8ace0875f83633a7ccdacd8bc (patch) | |
tree | 54afd8bbd7e80a9c92730ae36a74d85238d0ab47 /pkg/sentry/vfs/options.go | |
parent | b692574b021c301ee94f55537f9b3ee51485d55f (diff) | |
parent | a6024f7f5f6f438c11e30be0f93657b1956fd5ba (diff) |
Merge release-20200211.0-15-ga6024f7 (automated)
Diffstat (limited to 'pkg/sentry/vfs/options.go')
-rwxr-xr-x | pkg/sentry/vfs/options.go | 5 |
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(), |