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

Side by Side Diff: components/nacl/loader/nonsfi/nonsfi_sandbox.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 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/nonsfi/nonsfi_sandbox.h" 5 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <linux/net.h> 9 #include <linux/net.h>
10 #include <stdint.h>
10 #include <sys/mman.h> 11 #include <sys/mman.h>
11 #include <sys/prctl.h> 12 #include <sys/prctl.h>
12 #include <sys/socket.h> 13 #include <sys/socket.h>
13 #include <sys/syscall.h> 14 #include <sys/syscall.h>
14 #include <sys/time.h> 15 #include <sys/time.h>
15 16
16 #include "base/basictypes.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "content/public/common/sandbox_init.h" 20 #include "content/public/common/sandbox_init.h"
21 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" 21 #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
22 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" 22 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
23 #include "sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h" 23 #include "sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h"
24 #include "sandbox/linux/system_headers/linux_futex.h" 24 #include "sandbox/linux/system_headers/linux_futex.h"
25 #include "sandbox/linux/system_headers/linux_signal.h" 25 #include "sandbox/linux/system_headers/linux_signal.h"
26 #include "sandbox/linux/system_headers/linux_syscalls.h" 26 #include "sandbox/linux/system_headers/linux_syscalls.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 new nacl::nonsfi::NaClNonSfiBPFSandboxPolicy()), 339 new nacl::nonsfi::NaClNonSfiBPFSandboxPolicy()),
340 std::move(proc_fd)); 340 std::move(proc_fd));
341 if (!sandbox_is_initialized) 341 if (!sandbox_is_initialized)
342 return false; 342 return false;
343 RunSandboxSanityChecks(); 343 RunSandboxSanityChecks();
344 return true; 344 return true;
345 } 345 }
346 346
347 } // namespace nonsfi 347 } // namespace nonsfi
348 } // namespace nacl 348 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox.h ('k') | components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698