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

Side by Side Diff: sandbox/linux/bpf_dsl/linux_syscall_ranges.h

Issue 1029283003: WIP: Implement seccomp-bpf sandbox for nacl_helper_nonsfi. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « sandbox/linux/bpf_dsl/dump_bpf.cc ('k') | sandbox/linux/bpf_dsl/policy_compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SANDBOX_LINUX_BPF_DSL_LINUX_SYSCALL_RANGES_H_ 5 #ifndef SANDBOX_LINUX_BPF_DSL_LINUX_SYSCALL_RANGES_H_
6 #define SANDBOX_LINUX_BPF_DSL_LINUX_SYSCALL_RANGES_H_ 6 #define SANDBOX_LINUX_BPF_DSL_LINUX_SYSCALL_RANGES_H_
7 7
8 #include "build/build_config.h"
9
10 #if !defined(OS_NACL_NONSFI)
11 // TODO: __NR_SYSCALL_BASE is always 0 for
12 // __arm__ && (__thumb__ or __ARM_EABI__). Can we drop?
8 #include <asm/unistd.h> // For __NR_SYSCALL_BASE 13 #include <asm/unistd.h> // For __NR_SYSCALL_BASE
14 #endif
9 15
10 #if defined(__x86_64__) 16 #if defined(__x86_64__)
11 17
12 #define MIN_SYSCALL 0u 18 #define MIN_SYSCALL 0u
13 #define MAX_PUBLIC_SYSCALL 1024u 19 #define MAX_PUBLIC_SYSCALL 1024u
14 #define MAX_SYSCALL MAX_PUBLIC_SYSCALL 20 #define MAX_SYSCALL MAX_PUBLIC_SYSCALL
15 21
16 #elif defined(__i386__) 22 #elif defined(__i386__)
17 23
18 #define MIN_SYSCALL 0u 24 #define MIN_SYSCALL 0u
(...skipping 27 matching lines...) Expand all
46 52
47 #define MIN_SYSCALL 0u 53 #define MIN_SYSCALL 0u
48 #define MAX_PUBLIC_SYSCALL 279u 54 #define MAX_PUBLIC_SYSCALL 279u
49 #define MAX_SYSCALL MAX_PUBLIC_SYSCALL 55 #define MAX_SYSCALL MAX_PUBLIC_SYSCALL
50 56
51 #else 57 #else
52 #error "Unsupported architecture" 58 #error "Unsupported architecture"
53 #endif 59 #endif
54 60
55 #endif // SANDBOX_LINUX_BPF_DSL_LINUX_SYSCALL_RANGES_H_ 61 #endif // SANDBOX_LINUX_BPF_DSL_LINUX_SYSCALL_RANGES_H_
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/dump_bpf.cc ('k') | sandbox/linux/bpf_dsl/policy_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698