diff options
author | Jamie Liu <jamieliu@google.com> | 2019-07-17 15:48:33 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-17 15:52:38 -0700 |
commit | 2bc398bfd8fbe38776a512329bd0c40c9c7a5cdf (patch) | |
tree | b978cf47150c445300d20941d617941fb3053b4d /pkg/sentry/syscalls | |
parent | 84a59de5dc3a0b8a260c942958cd91e014dc8d9b (diff) |
Separate O_DSYNC and O_SYNC.
PiperOrigin-RevId: 258657913
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r-- | pkg/sentry/syscalls/linux/flags.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/flags.go b/pkg/sentry/syscalls/linux/flags.go index 0c1b5ec27..444f2b004 100644 --- a/pkg/sentry/syscalls/linux/flags.go +++ b/pkg/sentry/syscalls/linux/flags.go @@ -41,6 +41,7 @@ func flagsToPermissions(mask uint) (p fs.PermMask) { func linuxToFlags(mask uint) fs.FileFlags { return fs.FileFlags{ Direct: mask&linux.O_DIRECT != 0, + DSync: mask&(linux.O_DSYNC|linux.O_SYNC) != 0, Sync: mask&linux.O_SYNC != 0, NonBlocking: mask&linux.O_NONBLOCK != 0, Read: (mask & linux.O_ACCMODE) != linux.O_WRONLY, |