Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1945)

Unified Diff: sandbox/linux/services/arm_linux_syscalls.h

Issue 10836243: Add basic ARM policy to seccomp-bpf sandbox. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add newline. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/linux/services/arm_linux_syscalls.h
diff --git a/sandbox/linux/services/arm_linux_syscalls.h b/sandbox/linux/services/arm_linux_syscalls.h
new file mode 100644
index 0000000000000000000000000000000000000000..7317a784b082757f3dc4c174e1189269600e414c
--- /dev/null
+++ b/sandbox/linux/services/arm_linux_syscalls.h
@@ -0,0 +1,25 @@
+// 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_
+
jln (very slow on Chromium) 2012/08/14 22:19:32 Please add a comment somewhere stating that this f
Jorge Lucangeli Obes 2012/08/14 22:40:45 Done.
+#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_
+
« content/common/sandbox_seccomp_bpf_linux.cc ('K') | « content/common/sandbox_seccomp_bpf_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698