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

Issue 695353005: Non-SFI mode: Use dummy PID for NaCl's IPC channel on Linux platform. (Closed)

Created:
6 years, 1 month ago by hidehiko
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, hamaji, Junichi Uekawa, mazda, mdempsky, jschuh
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Non-SFI mode: Use dummy PID for NaCl's IPC channel and IPC channel on Linux platform. We do not want to expose PID from process on Linux, because it does not play any security role. Specifically, in NaCl processes, now although getpid() syscall is prohibited by seccomp sandbox, it looks working, probably because of the cache in libc layer. By this CL, Linux IPC, including nacl_helper_nonsfi, uses dummy PID (-1). Note; as for nacl_helper process, currently, the process is under PID namespace, so "dummy-like-" PID is already used. BUG=358465 TEST=Ran trybot. Committed: https://crrev.com/20a9a3ad484caea1f97b9c8824a79a5c8bf8a958 Cr-Commit-Position: refs/heads/master@{#307853}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : #

Patch Set 6 : Rebase #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -45 lines) Patch
M content/zygote/zygote_linux.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M ipc/ipc_channel.h View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M ipc/ipc_channel.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix.h View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -25 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
hidehiko
Could you take a look? Mark, could you take a look this from project point ...
6 years, 1 month ago (2014-11-04 17:59:04 UTC) #2
dmichael (off chromium)
ipc lgtm https://codereview.chromium.org/695353005/diff/1/ipc/ipc_channel.cc File ipc/ipc_channel.cc (right): https://codereview.chromium.org/695353005/diff/1/ipc/ipc_channel.cc#newcode33 ipc/ipc_channel.cc:33: // nacl_helper_nonsfi does not allow to use ...
6 years, 1 month ago (2014-11-05 23:48:41 UTC) #3
hidehiko
Thank you for review. PTAL. (Sorry, changes due to rebasing are mixed in revision 2. ...
6 years, 1 month ago (2014-11-06 14:19:30 UTC) #4
Mark Seaborn
Do you mind if I defer reviewing this until this code path is testable (i.e. ...
6 years, 1 month ago (2014-11-06 17:15:12 UTC) #5
hidehiko
On 2014/11/06 17:15:12, Mark Seaborn wrote: > Do you mind if I defer reviewing this ...
6 years, 1 month ago (2014-11-06 19:50:29 UTC) #6
Mark Seaborn
On 6 November 2014 11:50, <hidehiko@chromium.org> wrote: > On 2014/11/06 17:15:12, Mark Seaborn wrote: > ...
6 years, 1 month ago (2014-11-07 02:53:19 UTC) #7
mdempsky
https://codereview.chromium.org/695353005/diff/20001/components/nacl/loader/nacl_helper_linux.cc File components/nacl/loader/nacl_helper_linux.cc (right): https://codereview.chromium.org/695353005/diff/20001/components/nacl/loader/nacl_helper_linux.cc#newcode411 components/nacl/loader/nacl_helper_linux.cc:411: IPC::Channel::SetGlobalPid(-1); // Set dummy PID for IPC. Is this ...
6 years, 1 month ago (2014-11-07 03:05:34 UTC) #9
hidehiko
Mark, I see. So please feel free to hold on until the browser_tests for Non-SFI ...
6 years, 1 month ago (2014-11-07 05:43:21 UTC) #10
hidehiko
Can we resume this review? browser_tests are enabled on x86-32 bots (linux_rel_precise32).
6 years ago (2014-12-02 05:35:58 UTC) #11
Mark Seaborn
On 2014/12/02 05:35:58, hidehiko wrote: > Can we resume this review? browser_tests are enabled on ...
6 years ago (2014-12-03 01:54:01 UTC) #12
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/695353005/diff/20001/components/nacl/loader/nacl_helper_linux.cc File components/nacl/loader/nacl_helper_linux.cc (right): https://codereview.chromium.org/695353005/diff/20001/components/nacl/loader/nacl_helper_linux.cc#newcode408 components/nacl/loader/nacl_helper_linux.cc:408: // Now do nothing ...
6 years ago (2014-12-03 17:03:19 UTC) #13
jln (very slow on Chromium)
On 2014/12/03 17:03:19, hidehiko wrote: > > Furthermore, why not do the following? > > ...
6 years ago (2014-12-04 19:50:48 UTC) #15
hidehiko
PTAL. On 2014/12/04 19:50:48, jln wrote: > On 2014/12/03 17:03:19, hidehiko wrote: > > > ...
6 years ago (2014-12-08 12:06:16 UTC) #17
jam
lgtm
6 years ago (2014-12-08 18:21:46 UTC) #18
Mark Seaborn
The commit message says "This is short term workaround of PID use case for IPC ...
6 years ago (2014-12-08 21:40:36 UTC) #19
hidehiko
Thank you for review, jam@, mseaborn@. Julien, would you mind to take a look? Thanks, ...
6 years ago (2014-12-09 08:08:20 UTC) #20
Mark Seaborn
On 8 December 2014 at 13:40, <mseaborn@chromium.org> wrote: > The commit message says "This is ...
6 years ago (2014-12-09 16:43:27 UTC) #21
hidehiko
On 2014/12/09 16:43:27, Mark Seaborn wrote: > On 8 December 2014 at 13:40, <mailto:mseaborn@chromium.org> wrote: ...
6 years ago (2014-12-09 16:59:19 UTC) #22
mdempsky
lgtm LGTM for content/zygote/OWNERS
6 years ago (2014-12-10 01:38:34 UTC) #23
hidehiko
On 2014/12/10 01:38:34, mdempsky wrote: > lgtm > > LGTM for content/zygote/OWNERS Thank you for ...
6 years ago (2014-12-10 15:52:28 UTC) #24
jln (very slow on Chromium)
Forgot to lgtm, sorry.
6 years ago (2014-12-11 01:46:10 UTC) #25
hidehiko
On 2014/12/11 01:46:10, jln wrote: > Forgot to lgtm, sorry. Thank you, all. Submitting.
6 years ago (2014-12-11 02:05:13 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/695353005/140001
6 years ago (2014-12-11 02:06:58 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years ago (2014-12-11 03:51:30 UTC) #29
commit-bot: I haz the power
6 years ago (2014-12-11 03:52:28 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/20a9a3ad484caea1f97b9c8824a79a5c8bf8a958
Cr-Commit-Position: refs/heads/master@{#307853}

Powered by Google App Engine
This is Rietveld 408576698