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

Side by Side Diff: components/nacl/loader/nacl_sandbox_linux.cc

Issue 20337002: Move NaCl loader related files to components/nacl/loader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO and remove sandbox entry Created 7 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/nacl/nacl_sandbox_linux.h" 5 #include "components/nacl/loader/nacl_sandbox_linux.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <sys/ptrace.h> 8 #include <sys/ptrace.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/public/common/sandbox_init.h" 14 #include "content/public/common/sandbox_init.h"
15 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" 15 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 RunSandboxSanityChecks(); 144 RunSandboxSanityChecks();
145 // TODO(jln): Find a way to fix this. 145 // TODO(jln): Find a way to fix this.
146 // The sandbox' SIGSYS handler trips NaCl, so we disable it. 146 // The sandbox' SIGSYS handler trips NaCl, so we disable it.
147 // If SIGSYS is triggered it'll now execute the default action 147 // If SIGSYS is triggered it'll now execute the default action
148 // (CORE). This will make it hard to track down bugs and sandbox violations. 148 // (CORE). This will make it hard to track down bugs and sandbox violations.
149 CHECK(signal(SIGSYS, SIG_DFL) != SIG_ERR); 149 CHECK(signal(SIGSYS, SIG_DFL) != SIG_ERR);
150 return true; 150 return true;
151 } 151 }
152 return false; 152 return false;
153 } 153 }
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_sandbox_linux.h ('k') | components/nacl/loader/nacl_validation_db.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698