summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-20 23:12:35 +0000
committergVisor bot <gvisor-bot@google.com>2019-11-20 23:12:35 +0000
commitbd17bba359ecf2749e18c98b354a2633d35f88ac (patch)
tree6fa4eb4e27ff058123d24decbd1f0ccac8d126b1 /pkg/sentry/syscalls/linux
parenta98f44c8726eeec97e8b1e43978dd40d04d0b705 (diff)
parent012102eefd2b145ddee774cba28e4fa889fadd49 (diff)
Merge release-20191114.0-16-g012102e (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux')
-rw-r--r--pkg/sentry/syscalls/linux/flags.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/flags.go b/pkg/sentry/syscalls/linux/flags.go
index 444f2b004..07961dad9 100644
--- a/pkg/sentry/syscalls/linux/flags.go
+++ b/pkg/sentry/syscalls/linux/flags.go
@@ -50,5 +50,6 @@ func linuxToFlags(mask uint) fs.FileFlags {
Directory: mask&linux.O_DIRECTORY != 0,
Async: mask&linux.O_ASYNC != 0,
LargeFile: mask&linux.O_LARGEFILE != 0,
+ Truncate: mask&linux.O_TRUNC != 0,
}
}