OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/nacl/loader/sandbox_linux/nacl_sandbox_linux.h" | 5 #include "components/nacl/loader/sandbox_linux/nacl_sandbox_linux.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stdint.h> |
9 #include <sys/prctl.h> | 10 #include <sys/prctl.h> |
10 #include <sys/stat.h> | 11 #include <sys/stat.h> |
11 #include <sys/types.h> | 12 #include <sys/types.h> |
12 #include <unistd.h> | 13 #include <unistd.h> |
13 | 14 |
14 #include <limits> | 15 #include <limits> |
15 | 16 |
16 #include "base/basictypes.h" | |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
20 #include "base/files/scoped_file.h" | 20 #include "base/files/scoped_file.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
23 #include "base/posix/eintr_wrapper.h" | 23 #include "base/posix/eintr_wrapper.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "components/nacl/common/nacl_switches.h" | 25 #include "components/nacl/common/nacl_switches.h" |
26 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h" | 26 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 static const char kNoBpfMsg[] = | 237 static const char kNoBpfMsg[] = |
238 "The seccomp-bpf sandbox is not engaged for NaCl:"; | 238 "The seccomp-bpf sandbox is not engaged for NaCl:"; |
239 if (can_be_no_sandbox) | 239 if (can_be_no_sandbox) |
240 LOG(ERROR) << kNoBpfMsg << kItIsDangerousMsg; | 240 LOG(ERROR) << kNoBpfMsg << kItIsDangerousMsg; |
241 else | 241 else |
242 LOG(FATAL) << kNoBpfMsg << kItIsNotAllowedMsg; | 242 LOG(FATAL) << kNoBpfMsg << kItIsNotAllowedMsg; |
243 } | 243 } |
244 } | 244 } |
245 | 245 |
246 } // namespace nacl | 246 } // namespace nacl |
OLD | NEW |