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

Issue 659513004: Non-SFI Mode: Build base/ library by PNaCL toolchain for nacl_helper_nonsfi. (Closed)

Created:
6 years, 2 months ago by hidehiko
Modified:
6 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org, sadrul, hamaji, Junichi Uekawa, mazda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Non-SFI Mode: Build base/ library by PNaCL toolchain for nacl_helper_nonsfi. This CL is to build base/ for nacl_helper_nonsfi. The library is similar to base_nacl, but slightly different: - For rand_util, rand_util_posix should be used, instead of rand_util_nacl, because nacl_helper_nonsfi will be running under Linux directly. - MessageLoopForIO should be based on MessagePumpLibevent rather than MessagePumpDefault, to support IPC. - GetKnownDeadTerminationStatus, GetTerminationStatus, UnixDomainSocket::SendMsg and RecvMsg are included, as these are used to implement nacl_helper_nonsfi binary. - GLIB is not supported. It is unnecessary for nacl_helper_nonsfi. Note that this library is not used yet from any binary, because this CL is just a preparation, but the library is built actually. BUG=358465 TEST=Ran trybot. Implement nacl_helper_nonsfi on top of this CL, and made sure it is working. Committed: https://crrev.com/2b720d21260715614abea6f241874cc779f01332 Cr-Commit-Position: refs/heads/master@{#300075}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -16 lines) Patch
M base/base_nacl.gyp View 1 1 chunk +55 lines, -0 lines 0 comments Download
M base/files/file_util_posix.cc View 6 chunks +7 lines, -0 lines 0 comments Download
M base/message_loop/message_loop.h View 2 chunks +2 lines, -2 lines 0 comments Download
M base/message_loop/message_loop.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M base/posix/unix_domain_socket_linux.h View 3 chunks +4 lines, -0 lines 0 comments Download
M base/posix/unix_domain_socket_linux.cc View 1 2 7 chunks +24 lines, -3 lines 2 comments Download
M base/process/kill_posix.cc View 6 chunks +6 lines, -0 lines 0 comments Download
M build/common.gypi View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M components/nacl_nonsfi.gyp View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
hidehiko
Lei, Mark, could you take a look? This is the refined version of the CL, ...
6 years, 2 months ago (2014-10-14 19:45:59 UTC) #2
Lei Zhang
Do you need to make GN changes as well? https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp File base/base_nacl.gyp (right): https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp#newcode76 base/base_nacl.gyp:76: ...
6 years, 2 months ago (2014-10-14 21:32:24 UTC) #3
hidehiko
Thank you for quick review! Could you take another look? https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp File base/base_nacl.gyp (right): https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp#newcode76 ...
6 years, 2 months ago (2014-10-15 02:20:55 UTC) #4
hidehiko
> Do you need to make GN changes as well? At the moment, the PNaCl ...
6 years, 2 months ago (2014-10-15 02:22:34 UTC) #5
Lei Zhang
lgtm, but please let mseaborn take a look too. https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp File base/base_nacl.gyp (right): https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp#newcode116 base/base_nacl.gyp:116: ...
6 years, 2 months ago (2014-10-15 06:04:02 UTC) #6
hidehiko
Thank you for review, Lei! Mark, friendly ping? - hidehiko
6 years, 2 months ago (2014-10-15 06:34:39 UTC) #7
Mark Seaborn
LGTM https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp File base/base_nacl.gyp (right): https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp#newcode76 base/base_nacl.gyp:76: '<(DEPTH)/native_client/src/public/linux_syscalls', On 2014/10/15 02:20:55, hidehiko wrote: > On ...
6 years, 2 months ago (2014-10-16 23:03:09 UTC) #8
hidehiko
Thank you for review. I rebased it (build_common.gyp diff comes from the rebase). Submitting. https://codereview.chromium.org/659513004/diff/1/base/base_nacl.gyp ...
6 years, 2 months ago (2014-10-17 04:44:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659513004/40001
6 years, 2 months ago (2014-10-17 04:45:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659513004/40001
6 years, 2 months ago (2014-10-17 06:33:46 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 2 months ago (2014-10-17 06:40:37 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2b720d21260715614abea6f241874cc779f01332 Cr-Commit-Position: refs/heads/master@{#300075}
6 years, 2 months ago (2014-10-17 06:41:45 UTC) #16
mdempsky
https://codereview.chromium.org/659513004/diff/40001/base/posix/unix_domain_socket_linux.cc File base/posix/unix_domain_socket_linux.cc (right): https://codereview.chromium.org/659513004/diff/40001/base/posix/unix_domain_socket_linux.cc#newcode159 base/posix/unix_domain_socket_linux.cc:159: // MSG_TRUNC or MSG_CTRUNC. Wait, what? MSG_TRUNC and MSG_CTRUNC ...
6 years, 2 months ago (2014-10-25 00:48:23 UTC) #18
hidehiko
https://codereview.chromium.org/659513004/diff/40001/base/posix/unix_domain_socket_linux.cc File base/posix/unix_domain_socket_linux.cc (right): https://codereview.chromium.org/659513004/diff/40001/base/posix/unix_domain_socket_linux.cc#newcode159 base/posix/unix_domain_socket_linux.cc:159: // MSG_TRUNC or MSG_CTRUNC. On 2014/10/25 00:48:23, mdempsky wrote: ...
6 years, 1 month ago (2014-10-27 08:38:44 UTC) #19
Mark Seaborn
On 27 October 2014 01:38, <hidehiko@chromium.org> wrote: > > https://codereview.chromium.org/659513004/diff/40001/base/ > posix/unix_domain_socket_linux.cc > File base/posix/unix_domain_socket_linux.cc ...
6 years, 1 month ago (2014-10-27 18:16:41 UTC) #20
mdempsky
6 years, 1 month ago (2014-10-27 19:57:59 UTC) #21
Message was sent while issue was closed.
Sounds good.  I've filed crbug.com/427625 to track this.  Thanks!

On Mon, Oct 27, 2014 at 11:16 AM, Mark Seaborn <mseaborn@chromium.org>
wrote:

> On 27 October 2014 01:38, <hidehiko@chromium.org> wrote:
>
>>
>> https://codereview.chromium.org/659513004/diff/40001/base/
>> posix/unix_domain_socket_linux.cc
>> File base/posix/unix_domain_socket_linux.cc (right):
>>
>> https://codereview.chromium.org/659513004/diff/40001/base/
>> posix/unix_domain_socket_linux.cc#newcode159
>> base/posix/unix_domain_socket_linux.cc:159: // MSG_TRUNC or MSG_CTRUNC.
>> On 2014/10/25 00:48:23, mdempsky wrote:
>>
>>> Wait, what?  MSG_TRUNC and MSG_CTRUNC are POSIX-standard features (since
>>> at
>>
>>  least SUSv2), and this has security implications: a process that
>>> receives a
>>
>>  message over an AF_UNIX socket needs to be able to know whether it
>>> allocated
>>
>>  enough space for the message, or whether the message was truncated.
>>>
>>
>>  I can understand PNaCl not supporting Linux-isms like
>>> SO_PASSCRED/SCM_CREDENTIALS, but omitting this part seems like a mistake.
>>
>>
>> Thank you for pointing this out.
>> Mark, can we add MSG_TRUNC/MSG_CTRUNC into PNaCl toolchain (i.e.,
>> native_client/src/public/linux_syscalls/sys/socket.h)?
>
>
> Yes, that would be good.
>
> Cheers,
> Mark
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698