summaryrefslogtreecommitdiffstats
path: root/content/zygote
diff options
context:
space:
mode:
authorhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 04:41:57 +0000
committerhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 04:41:57 +0000
commit1154765f5b5c6a2aefa778fd80d8230c09c39221 (patch)
tree91ea5446c7c9cead59a13de9e242909df3dc8395 /content/zygote
parent16f013d39846a4dccd918c640dced866b832af10 (diff)
downloadchromium_src-1154765f5b5c6a2aefa778fd80d8230c09c39221.zip
chromium_src-1154765f5b5c6a2aefa778fd80d8230c09c39221.tar.gz
chromium_src-1154765f5b5c6a2aefa778fd80d8230c09c39221.tar.bz2
Tell nacl_helper to use non SFI mode in HandleForkRequest
Before this patch, we were passing this info by the first IPC to nacl_helper (NaClProcessMsg_Start). This timing is too late for seccomp sandbox initialization. This patch introduces a new process type, nacl-loader-nonsfi. For now, nacl_helper says it can handle both nacl-loader and nacl-loader-nonsfi. Once we have splitted nacl_helper into two binaries, we will probably create two NaClForkDelegate instances and let each of them to focus on a single process type. Also removed uses_nonsfi_mode from NaClStartParams. This is unnecessary anymore. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=out/Release/browser_tests --gtest_filter='NaCl*' and trybot R=jln@chromium.org, jochen@chromium.org, mseaborn@chromium.org Review URL: https://codereview.chromium.org/216603002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261279 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/zygote')
-rw-r--r--content/zygote/zygote_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/zygote/zygote_linux.cc b/content/zygote/zygote_linux.cc
index 2f0bd20..518b7e4 100644
--- a/content/zygote/zygote_linux.cc
+++ b/content/zygote/zygote_linux.cc
@@ -320,7 +320,7 @@ int Zygote::ForkWithRealPid(const std::string& process_type,
fds.push_back(ipc_channel_fd); // kBrowserFDIndex
fds.push_back(dummy_fd); // kDummyFDIndex
fds.push_back(pipe_fds[0]); // kParentFDIndex
- pid = helper_->Fork(fds);
+ pid = helper_->Fork(process_type, fds);
} else {
pid = fork();
}