summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-28 23:44:15 +0000
committergVisor bot <gvisor-bot@google.com>2020-01-28 23:44:15 +0000
commit5256e3e73cdf999448c930940be8f0b71cf0f8b1 (patch)
tree65fe40339e619395fd7b331c0e642e5400cacfc1 /pkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go
parent1afa1ac87c09bd2eea2c61877e2ad78baeee7a8f (diff)
parent437c986c6a0ed0e1fccfbfb6706f43d2c801c444 (diff)
Merge release-20200115.0-125-g437c986 (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go')
-rwxr-xr-xpkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go b/pkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go
new file mode 100755
index 000000000..6af5c400f
--- /dev/null
+++ b/pkg/sentry/syscalls/linux/vfs2/linux64_override_arm64.go
@@ -0,0 +1,25 @@
+// Copyright 2020 The gVisor Authors.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package vfs2
+
+import (
+ "gvisor.dev/gvisor/pkg/sentry/kernel"
+ "gvisor.dev/gvisor/pkg/sentry/syscalls"
+)
+
+// Override syscall table to add syscalls implementations from this package.
+func Override(table map[uintptr]kernel.Syscall) {
+ table[63] = syscalls.Supported("read", Read)
+}