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

Side by Side Diff: sandbox/linux/seccomp-bpf/sandbox_bpf.cc

Issue 570163003: Large IWYU cleanup for seccomp-bpf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trap-errorcode
Patch Set: Sort #includes Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 5 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
6 6
7 // Some headers on Android are missing cdefs: crbug.com/172337. 7 // Some headers on Android are missing cdefs: crbug.com/172337.
8 // (We can't use OS_ANDROID here since build_config.h is not included). 8 // (We can't use OS_ANDROID here since build_config.h is not included).
9 #if defined(ANDROID) 9 #if defined(ANDROID)
10 #include <sys/cdefs.h> 10 #include <sys/cdefs.h>
11 #endif 11 #endif
12 12
13 #include <errno.h> 13 #include <errno.h>
14 #include <fcntl.h> 14 #include <fcntl.h>
15 #include <linux/filter.h>
15 #include <signal.h> 16 #include <signal.h>
16 #include <string.h> 17 #include <string.h>
17 #include <sys/prctl.h> 18 #include <sys/prctl.h>
18 #include <sys/stat.h> 19 #include <sys/stat.h>
19 #include <sys/syscall.h> 20 #include <sys/syscall.h>
20 #include <sys/types.h> 21 #include <sys/types.h>
21 #include <sys/wait.h> 22 #include <sys/wait.h>
22 #include <time.h> 23 #include <time.h>
23 #include <unistd.h> 24 #include <unistd.h>
24 25
25 #include <limits> 26 #include <limits>
26 27
27 #include "base/compiler_specific.h" 28 #include "base/compiler_specific.h"
28 #include "base/logging.h" 29 #include "base/logging.h"
29 #include "base/macros.h" 30 #include "base/macros.h"
30 #include "base/memory/scoped_ptr.h" 31 #include "base/memory/scoped_ptr.h"
31 #include "base/posix/eintr_wrapper.h" 32 #include "base/posix/eintr_wrapper.h"
32 #include "sandbox/linux/seccomp-bpf/codegen.h" 33 #include "sandbox/linux/seccomp-bpf/codegen.h"
34 #include "sandbox/linux/seccomp-bpf/die.h"
33 #include "sandbox/linux/seccomp-bpf/errorcode.h" 35 #include "sandbox/linux/seccomp-bpf/errorcode.h"
36 #include "sandbox/linux/seccomp-bpf/instruction.h"
37 #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
34 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h" 38 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
35 #include "sandbox/linux/seccomp-bpf/syscall.h" 39 #include "sandbox/linux/seccomp-bpf/syscall.h"
36 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h" 40 #include "sandbox/linux/seccomp-bpf/syscall_iterator.h"
37 #include "sandbox/linux/seccomp-bpf/trap.h" 41 #include "sandbox/linux/seccomp-bpf/trap.h"
38 #include "sandbox/linux/seccomp-bpf/verifier.h" 42 #include "sandbox/linux/seccomp-bpf/verifier.h"
39 #include "sandbox/linux/services/linux_syscalls.h" 43 #include "sandbox/linux/services/linux_syscalls.h"
40 44
41 namespace sandbox { 45 namespace sandbox {
42 46
43 namespace { 47 namespace {
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 } 1132 }
1129 } 1133 }
1130 1134
1131 ErrorCode SandboxBPF::Kill(const char* msg) { 1135 ErrorCode SandboxBPF::Kill(const char* msg) {
1132 return Trap(BPFFailure, const_cast<char*>(msg)); 1136 return Trap(BPFFailure, const_cast<char*>(msg));
1133 } 1137 }
1134 1138
1135 SandboxBPF::SandboxStatus SandboxBPF::status_ = STATUS_UNKNOWN; 1139 SandboxBPF::SandboxStatus SandboxBPF::status_ = STATUS_UNKNOWN;
1136 1140
1137 } // namespace sandbox 1141 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp-bpf/sandbox_bpf.h ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf_compatibility_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698