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

Issue 1133303005: Non-SFI mode: Open primary IPC::Channel before seccomp-sandbox enabled. (Closed)

Created:
5 years, 7 months ago by hidehiko
Modified:
5 years, 7 months ago
Reviewers:
Mark Seaborn
CC:
chromium-reviews, hamaji, mazda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Non-SFI mode: Open primary IPC::Channel before seccomp-sandbox enabled. Currently, the primary IPC::Channel is created in NonSfiListener::Listen(). However, it is run in CLIENT mode so that it requires socketpair() system call, which we're going to prohibit. This CL moves the IPC::Channel opening before seccomp-bpf engaged. Along with the change, we get rid of IPC::SyncChannel for NonSfiListener. It is because: - SyncChannel's complicated structure is not necessary here, and - we cannot create the IOThread required by SyncChannel before seccomp-bpf is engaged. By this Change, IO operation for the primary IPC::Channel in Non-SFI mode runs on the main thread rather than NaCl_IOThread. TEST=Ran browser_tests --gtest_filter=*NonSfi* locally. Ran bots. BUG=358417

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -24 lines) Patch
M components/nacl/loader/nacl_helper_linux.cc View 1 chunk +16 lines, -7 lines 1 comment Download
M components/nacl/loader/nonsfi/nonsfi_listener.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 2 chunks +7 lines, -11 lines 0 comments Download
M components/nacl/loader/sandbox_linux/nacl_sandbox_linux.h View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc View 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
hidehiko
It turned out that, to prohibit socketpair() by seccomp-bpf sandbox, we need to tweak the ...
5 years, 7 months ago (2015-05-13 12:42:11 UTC) #2
Mark Seaborn
https://codereview.chromium.org/1133303005/diff/1/components/nacl/loader/nacl_helper_linux.cc File components/nacl/loader/nacl_helper_linux.cc (right): https://codereview.chromium.org/1133303005/diff/1/components/nacl/loader/nacl_helper_linux.cc#newcode114 components/nacl/loader/nacl_helper_linux.cc:114: // Inside the creation, a socket pair is created ...
5 years, 7 months ago (2015-05-13 17:40:58 UTC) #3
hidehiko
On 2015/05/13 17:40:58, Mark Seaborn wrote: > https://codereview.chromium.org/1133303005/diff/1/components/nacl/loader/nacl_helper_linux.cc > File components/nacl/loader/nacl_helper_linux.cc (right): > > https://codereview.chromium.org/1133303005/diff/1/components/nacl/loader/nacl_helper_linux.cc#newcode114 ...
5 years, 7 months ago (2015-05-15 12:54:16 UTC) #4
Mark Seaborn
On 15 May 2015 at 05:54, <hidehiko@chromium.org> wrote: > @jln: We should probably remove IPC_USES_READWRITE ...
5 years, 7 months ago (2015-05-15 15:57:52 UTC) #5
mdempsky
I'd support getting rid of IPC_USES_READWRITE, and I expect jln@ would too. I hadn't realized ...
5 years, 7 months ago (2015-05-15 23:32:12 UTC) #6
jln (very slow on Chromium)
On 2015/05/15 23:32:12, mdempsky wrote: > I'd support getting rid of IPC_USES_READWRITE, and I expect ...
5 years, 7 months ago (2015-05-15 23:43:30 UTC) #7
hidehiko
5 years, 7 months ago (2015-05-25 16:11:13 UTC) #8
Abandoning. Thanks to Matthew's work, we do not need this any more.

Powered by Google App Engine
This is Rietveld 408576698