summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorjorgelo@chromium.org <jorgelo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-15 04:21:58 +0000
committerjorgelo@chromium.org <jorgelo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-15 04:21:58 +0000
commit811680ec0fe18cb282fcf3c1edd72e28594fb7ff (patch)
treeb1c82af09e3c0609eed5938671587a067b5abffb /sandbox
parent81f0d1652f803558486180e3b6c913e2d86afef5 (diff)
downloadchromium_src-811680ec0fe18cb282fcf3c1edd72e28594fb7ff.zip
chromium_src-811680ec0fe18cb282fcf3c1edd72e28594fb7ff.tar.gz
chromium_src-811680ec0fe18cb282fcf3c1edd72e28594fb7ff.tar.bz2
Add basic ARM policy to seccomp-bpf sandbox.
BUG=141157 TEST=about:sandbox on daisy shows "Seccomp-BPF Yes". Review URL: https://chromiumcodereview.appspot.com/10836243 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/linux/services/arm_linux_syscalls.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/sandbox/linux/services/arm_linux_syscalls.h b/sandbox/linux/services/arm_linux_syscalls.h
new file mode 100644
index 0000000..37a741e
--- /dev/null
+++ b/sandbox/linux/services/arm_linux_syscalls.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Generated from the Linux kernel's calls.S.
+#ifndef SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
+#define SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
+
+// This file doesn't yet list all syscalls.
+// TODO(jorgelo): define all ARM syscalls.
+
+#if !defined(__arm__)
+#error "Including header on wrong architecture"
+#endif
+
+// __NR_SYSCALL_BASE is defined in <asm/unistd.h>.
+#include <asm/unistd.h>
+
+#ifndef __NR_process_vm_readv
+#define __NR_process_vm_readv (__NR_SYSCALL_BASE+376)
+#endif
+
+#ifndef __NR_process_vm_writev
+#define __NR_process_vm_writev (__NR_SYSCALL_BASE+377)
+#endif
+
+#endif // SANDBOX_LINUX_SERVICES_ARM_LINUX_SYSCALLS_H_
+