summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-27 19:58:24 +0000
committerjln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-27 19:58:24 +0000
commit995d2e952cc1c7270ed99b12f2643251afc0135d (patch)
tree7665b9612126f77c2787b7eae6653a6bc4cbe67a
parent4e5eff7ffc6637da239f91ca43368c5ae1e7eb31 (diff)
downloadchromium_src-995d2e952cc1c7270ed99b12f2643251afc0135d.zip
chromium_src-995d2e952cc1c7270ed99b12f2643251afc0135d.tar.gz
chromium_src-995d2e952cc1c7270ed99b12f2643251afc0135d.tar.bz2
NaCl: run sandbox sanity checks only when enabled
Only run the sandbox sanity checks when the sandbox is enabled. BUG=254566 R=mseaborn@chromium.org Review URL: https://codereview.chromium.org/18094002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208977 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/nacl/nacl_sandbox_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/nacl/nacl_sandbox_linux.cc b/chrome/nacl/nacl_sandbox_linux.cc
index 0f45d15..19585ea 100644
--- a/chrome/nacl/nacl_sandbox_linux.cc
+++ b/chrome/nacl/nacl_sandbox_linux.cc
@@ -59,8 +59,8 @@ void RunSandboxSanityChecks() {
bool InitializeBpfSandbox() {
bool sandbox_is_initialized =
content::InitializeSandbox(NaClBpfSandboxPolicy);
- RunSandboxSanityChecks();
if (sandbox_is_initialized) {
+ RunSandboxSanityChecks();
// TODO(jln): Find a way to fix this.
// The sandbox' SIGSYS handler trips NaCl, so we disable it.
// If SIGSYS is triggered it'll now execute the default action