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

Unified Diff: components/nacl/loader/nacl_listener.cc

Issue 196793023: Add seccomp sandbox for non-SFI NaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/loader/nacl_listener.cc
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc
index 60e8579008c494ea5fa0d5a4a9333f1973f28d5d..2f0d3fce2877db622df22c4b84e78b3b0ad2a576 100644
--- a/components/nacl/loader/nacl_listener.cc
+++ b/components/nacl/loader/nacl_listener.cc
@@ -268,7 +268,10 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) {
NaClChromeMainSetUrandomFd(urandom_fd);
#endif
- NaClChromeMainInit();
+ if (params.uses_nonsfi_mode)
+ NaClChromeMainInitForNonSfi();
Mark Seaborn 2014/03/28 01:38:25 AFAICT, this function isn't defined, so this chang
hamaji 2014/03/28 12:06:10 Sorry, I forgot to publish this change (https://co
+ else
+ NaClChromeMainInit();
struct NaClChromeMainArgs *args = NaClChromeMainArgsCreate();
if (args == NULL) {
LOG(ERROR) << "NaClChromeMainArgsCreate() failed";

Powered by Google App Engine
This is Rietveld 408576698