| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_main_platform_delegate.h" | 5 #include "chrome/nacl/nacl_main_platform_delegate.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/common/chrome_switches.h" | |
| 9 #include "seccompsandbox/sandbox.h" | 8 #include "seccompsandbox/sandbox.h" |
| 10 | 9 |
| 11 NaClMainPlatformDelegate::NaClMainPlatformDelegate( | 10 NaClMainPlatformDelegate::NaClMainPlatformDelegate( |
| 12 const MainFunctionParams& parameters) | 11 const MainFunctionParams& parameters) |
| 13 : parameters_(parameters), sandbox_test_module_(NULL) { | 12 : parameters_(parameters), sandbox_test_module_(NULL) { |
| 14 } | 13 } |
| 15 | 14 |
| 16 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() { | 15 NaClMainPlatformDelegate::~NaClMainPlatformDelegate() { |
| 17 } | 16 } |
| 18 | 17 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 44 // http://code.google.com/p/nativeclient/issues/list?q=label:Seccomp | 43 // http://code.google.com/p/nativeclient/issues/list?q=label:Seccomp |
| 45 // At best, NaCl will not work. At worst, enabling the seccomp sandbox | 44 // At best, NaCl will not work. At worst, enabling the seccomp sandbox |
| 46 // could create a hole in the NaCl sandbox. | 45 // could create a hole in the NaCl sandbox. |
| 47 } | 46 } |
| 48 | 47 |
| 49 bool NaClMainPlatformDelegate::RunSandboxTests() { | 48 bool NaClMainPlatformDelegate::RunSandboxTests() { |
| 50 // The sandbox is started in the zygote process: zygote_main_linux.cc | 49 // The sandbox is started in the zygote process: zygote_main_linux.cc |
| 51 // http://code.google.com/p/chromium/wiki/LinuxSUIDSandbox | 50 // http://code.google.com/p/chromium/wiki/LinuxSUIDSandbox |
| 52 return true; | 51 return true; |
| 53 } | 52 } |
| OLD | NEW |