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

Side by Side Diff: components/nacl/loader/sandbox_linux/nacl_sandbox_linux.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, 11 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/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
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
OLDNEW
« no previous file with comments | « components/nacl/loader/sandbox_linux/nacl_bpf_sandbox_linux.cc ('k') | components/nacl/renderer/file_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698