summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-14 20:42:47 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-14 20:42:47 +0000
commit3f348ccf70e5c866708c6f73f6c6c0798b94bf53 (patch)
tree163351bd1185698aea968c75510dd07c9afa1dc5 /pkg/sentry/syscalls
parentf3dd4b0c44d2862b0a3443bd1d3d243b9bbedea4 (diff)
parent52b4b19249adfeba65fe6f0ef27111f2ed887888 (diff)
Merge release-20200323.0-153-g52b4b19 (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rwxr-xr-xpkg/sentry/syscalls/linux/vfs2/filesystem.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/filesystem.go b/pkg/sentry/syscalls/linux/vfs2/filesystem.go
index a859095e2..46d3e189c 100755
--- a/pkg/sentry/syscalls/linux/vfs2/filesystem.go
+++ b/pkg/sentry/syscalls/linux/vfs2/filesystem.go
@@ -172,7 +172,7 @@ func openat(t *kernel.Task, dirfd int32, pathAddr usermem.Addr, flags uint32, mo
defer tpop.Release()
file, err := t.Kernel().VFS().OpenAt(t, t.Credentials(), &tpop.pop, &vfs.OpenOptions{
- Flags: flags,
+ Flags: flags | linux.O_LARGEFILE,
Mode: linux.FileMode(mode & (0777 | linux.S_ISUID | linux.S_ISGID | linux.S_ISVTX) &^ t.FSContext().Umask()),
})
if err != nil {