summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/vfs2/vfs2.go
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2020-05-14 09:34:21 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-14 09:35:54 -0700
commit47dfba76616a69887f0d5a4be6eb82b5dc5d0f52 (patch)
treef6a34a13c2a6a777c7fb34369e06fced6d7fb3ff /pkg/sentry/syscalls/linux/vfs2/vfs2.go
parentf1ad2d54ab28dcdaaa5d7aa95d8f1b370b6fd36d (diff)
Port memfd_create to vfs2 and finish implementation of file seals.
Closes #2612. PiperOrigin-RevId: 311548074
Diffstat (limited to 'pkg/sentry/syscalls/linux/vfs2/vfs2.go')
-rw-r--r--pkg/sentry/syscalls/linux/vfs2/vfs2.go2
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 9c04677f1..ec8da7f06 100644
--- a/pkg/sentry/syscalls/linux/vfs2/vfs2.go
+++ b/pkg/sentry/syscalls/linux/vfs2/vfs2.go
@@ -158,7 +158,7 @@ func Override() {
s.Table[306] = syscalls.Supported("syncfs", Syncfs)
s.Table[307] = syscalls.Supported("sendmmsg", SendMMsg)
s.Table[316] = syscalls.Supported("renameat2", Renameat2)
- delete(s.Table, 319) // memfd_create
+ s.Table[319] = syscalls.Supported("memfd_create", MemfdCreate)
s.Table[322] = syscalls.Supported("execveat", Execveat)
s.Table[327] = syscalls.Supported("preadv2", Preadv2)
s.Table[328] = syscalls.Supported("pwritev2", Pwritev2)