summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/epoll.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-03 00:00:41 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-03 00:00:41 +0000
commit45793378cd0b1bb801fd515e96e96fb49a2846b4 (patch)
tree2bd93c27575e4848a236c8b8fb74de97c3330e41 /pkg/sentry/vfs/epoll.go
parentb1a54b501727d144ae7af94e21b3eeb9b8a9a208 (diff)
parentdbc507dc5cfde2f69a94a58fcb2744ef0899ce7e (diff)
Merge release-20200323.0-59-gdbc507d (automated)
Diffstat (limited to 'pkg/sentry/vfs/epoll.go')
-rwxr-xr-xpkg/sentry/vfs/epoll.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/epoll.go b/pkg/sentry/vfs/epoll.go
index 3da45d744..8e0b40841 100755
--- a/pkg/sentry/vfs/epoll.go
+++ b/pkg/sentry/vfs/epoll.go
@@ -99,6 +99,8 @@ func (vfs *VirtualFilesystem) NewEpollInstanceFD() (*FileDescription, error) {
interest: make(map[epollInterestKey]*epollInterest),
}
if err := ep.vfsfd.Init(ep, linux.O_RDWR, vd.Mount(), vd.Dentry(), &FileDescriptionOptions{
+ DenyPRead: true,
+ DenyPWrite: true,
UseDentryMetadata: true,
}); err != nil {
return nil, err