diff options
author | Dean Deng <deandeng@google.com> | 2020-06-19 11:48:24 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-19 11:50:09 -0700 |
commit | 7db196c4dbb33562dbfaa28a9476c590f356b2b5 (patch) | |
tree | 43f701b5d5bceecfc8499e7a82c8c210b27a82d1 /pkg/sentry/syscalls/linux/vfs2/vfs2.go | |
parent | d962f9f3842c5c352bc61411cf27e38ba2219317 (diff) |
Port fadvise64 to vfs2.
Like vfs1, we have a trivial implementation that ignores all valid advice.
Updates #2923.
PiperOrigin-RevId: 317349505
Diffstat (limited to 'pkg/sentry/syscalls/linux/vfs2/vfs2.go')
-rw-r--r-- | pkg/sentry/syscalls/linux/vfs2/vfs2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/vfs2.go b/pkg/sentry/syscalls/linux/vfs2/vfs2.go index caa6a98ff..b463edf2a 100644 --- a/pkg/sentry/syscalls/linux/vfs2/vfs2.go +++ b/pkg/sentry/syscalls/linux/vfs2/vfs2.go @@ -108,7 +108,7 @@ func Override() { s.Table[209] = syscalls.PartiallySupported("io_submit", IoSubmit, "Generally supported with exceptions. User ring optimizations are not implemented.", []string{"gvisor.dev/issue/204"}) s.Table[213] = syscalls.Supported("epoll_create", EpollCreate) s.Table[217] = syscalls.Supported("getdents64", Getdents64) - delete(s.Table, 221) // fdavise64 + s.Table[221] = syscalls.PartiallySupported("fadvise64", Fadvise64, "The syscall is 'supported', but ignores all provided advice.", nil) s.Table[232] = syscalls.Supported("epoll_wait", EpollWait) s.Table[233] = syscalls.Supported("epoll_ctl", EpollCtl) s.Table[235] = syscalls.Supported("utimes", Utimes) |