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

Issue 10914138: Split secure command channel and untrusted application channel (Closed)

Created:
8 years, 3 months ago by Petr Hosek
Modified:
8 years, 2 months ago
Reviewers:
bsy, Mark Seaborn, phosek
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Secure command channel and untrusted application channel have been split as two separated socket addresses, this allows secure command channel address to be passed to parent, etc. Subsequently, the secure command service was refactored to allow accepting multiple connections and uses custom thread factory to track the number of command channels. When all command channels are closed, the application exits. Secure command service was split into separate source files for clarity as they are independent from rest of the sel_ldr source code. This SelUniveral-based test infrastructure is only temporary; once the current SelLdrLauncher will be replaced by the new interface, the test for this interface could be simplified to avoid the use of SelUniversal at all. BUG=http://code.google.com/p/nativeclient/issues/detail?id=3019 TESTS=small_tests Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=9853

Patch Set 1 #

Total comments: 2

Patch Set 2 : Dropped Command Service. #

Total comments: 2

Patch Set 3 : CommandSetup SRPC call added to secure command service. #

Total comments: 2

Patch Set 4 : Separated secure command channel and untrusted app channel. #

Total comments: 13

Patch Set 5 : Minor fixes. #

Total comments: 20

Patch Set 6 : Addressed bsy's comments. #

Patch Set 7 : Rebased with master. #

Total comments: 2

Patch Set 8 : Comment fixed. #

Total comments: 8

Patch Set 9 : Fixed a few nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -361 lines) Patch
M src/trusted/manifest_name_service_proxy/manifest_proxy.c View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M src/trusted/nonnacl_util/sel_ldr_launcher.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M src/trusted/nonnacl_util/sel_ldr_launcher_base.cc View 1 2 3 4 chunks +8 lines, -6 lines 0 comments Download
M src/trusted/sel_universal/reverse_emulate.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/service_runtime/build.scons View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A src/trusted/service_runtime/nacl_secure_service.h View 1 2 3 4 5 1 chunk +98 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/nacl_secure_service.c View 1 2 3 4 5 6 7 8 1 chunk +434 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.h View 1 2 3 4 chunks +5 lines, -10 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.c View 1 2 3 4 5 6 7 8 11 chunks +48 lines, -340 lines 0 comments Download
M src/trusted/service_runtime/service_runtime.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Petr Hosek
8 years, 3 months ago (2012-09-07 04:00:27 UTC) #1
bsy
please rebase & rerun try jobs https://chromiumcodereview.appspot.com/10914138/diff/1/src/trusted/nonnacl_util/sel_ldr_launcher.h File src/trusted/nonnacl_util/sel_ldr_launcher.h (right): https://chromiumcodereview.appspot.com/10914138/diff/1/src/trusted/nonnacl_util/sel_ldr_launcher.h#newcode88 src/trusted/nonnacl_util/sel_ldr_launcher.h:88: // Sets up ...
8 years, 3 months ago (2012-09-07 17:15:52 UTC) #2
Petr Hosek
This change is based on load_irt so we need to wait till that one gets ...
8 years, 3 months ago (2012-09-11 18:16:08 UTC) #3
bsy
if bots are happy, lgtm https://codereview.chromium.org/10914138/diff/15001/src/trusted/manifest_name_service_proxy/manifest_proxy.c File src/trusted/manifest_name_service_proxy/manifest_proxy.c (right): https://codereview.chromium.org/10914138/diff/15001/src/trusted/manifest_name_service_proxy/manifest_proxy.c#newcode357 src/trusted/manifest_name_service_proxy/manifest_proxy.c:357: NaClLog(LOG_FATAL, fix indent
8 years, 2 months ago (2012-09-24 22:47:18 UTC) #4
Petr Hosek
command_setup SRPC call added to secure command channel.
8 years, 2 months ago (2012-09-25 18:05:50 UTC) #5
Petr Hosek
https://codereview.chromium.org/10914138/diff/15001/src/trusted/manifest_name_service_proxy/manifest_proxy.c File src/trusted/manifest_name_service_proxy/manifest_proxy.c (right): https://codereview.chromium.org/10914138/diff/15001/src/trusted/manifest_name_service_proxy/manifest_proxy.c#newcode357 src/trusted/manifest_name_service_proxy/manifest_proxy.c:357: NaClLog(LOG_FATAL, On 2012/09/24 22:47:18, bsy wrote: > fix indent ...
8 years, 2 months ago (2012-09-25 18:06:10 UTC) #6
bsy
https://codereview.chromium.org/10914138/diff/20007/src/trusted/service_runtime/sel_ldr.c File src/trusted/service_runtime/sel_ldr.c (right): https://codereview.chromium.org/10914138/diff/20007/src/trusted/service_runtime/sel_ldr.c#newcode1409 src/trusted/service_runtime/sel_ldr.c:1409: struct NaClDesc *pair[2]; plz make the pair be part ...
8 years, 2 months ago (2012-09-25 18:37:10 UTC) #7
Petr Hosek
https://codereview.chromium.org/10914138/diff/20007/src/trusted/service_runtime/sel_ldr.c File src/trusted/service_runtime/sel_ldr.c (right): https://codereview.chromium.org/10914138/diff/20007/src/trusted/service_runtime/sel_ldr.c#newcode1409 src/trusted/service_runtime/sel_ldr.c:1409: struct NaClDesc *pair[2]; On 2012/09/25 18:37:10, bsy wrote: > ...
8 years, 2 months ago (2012-09-25 23:09:11 UTC) #8
bsy
a couple of minor bugs. i think it's okay to have the secure service thread ...
8 years, 2 months ago (2012-09-26 00:03:00 UTC) #9
Petr Hosek
http://codereview.chromium.org/10914138/diff/20009/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): http://codereview.chromium.org/10914138/diff/20009/src/trusted/service_runtime/nacl_secure_service.c#newcode51 src/trusted/service_runtime/nacl_secure_service.c:51: NaClLog(4, "NaClCondVar failed\n"); On 2012/09/26 00:03:00, bsy wrote: > ...
8 years, 2 months ago (2012-09-26 00:45:13 UTC) #10
bsy
looking good. please revert to the previous block-forever behavior and simplify the secure service by ...
8 years, 2 months ago (2012-09-26 03:35:33 UTC) #11
bsy
one more bug https://codereview.chromium.org/10914138/diff/27019/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): https://codereview.chromium.org/10914138/diff/27019/src/trusted/service_runtime/nacl_secure_service.c#newcode50 src/trusted/service_runtime/nacl_secure_service.c:50: goto failure_simple_ctor; goto failure_no_mutex; https://codereview.chromium.org/10914138/diff/27019/src/trusted/service_runtime/nacl_secure_service.c#newcode68 src/trusted/service_runtime/nacl_secure_service.c:68: ...
8 years, 2 months ago (2012-09-26 03:50:54 UTC) #12
Petr Hosek
https://codereview.chromium.org/10914138/diff/27019/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): https://codereview.chromium.org/10914138/diff/27019/src/trusted/service_runtime/nacl_secure_service.c#newcode50 src/trusted/service_runtime/nacl_secure_service.c:50: goto failure_simple_ctor; On 2012/09/26 03:50:55, bsy wrote: > goto ...
8 years, 2 months ago (2012-09-26 04:22:21 UTC) #13
bsy
one nit. please check veracity of comment & fix. https://codereview.chromium.org/10914138/diff/19024/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): https://codereview.chromium.org/10914138/diff/19024/src/trusted/service_runtime/nacl_secure_service.c#newcode156 src/trusted/service_runtime/nacl_secure_service.c:156: ...
8 years, 2 months ago (2012-09-26 15:45:10 UTC) #14
Petr Hosek
https://codereview.chromium.org/10914138/diff/19024/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): https://codereview.chromium.org/10914138/diff/19024/src/trusted/service_runtime/nacl_secure_service.c#newcode156 src/trusted/service_runtime/nacl_secure_service.c:156: * Takes ownership of rev reference. Caller should Ref() ...
8 years, 2 months ago (2012-09-26 17:45:39 UTC) #15
bsy
a couple of quick style nits. o/w lgtm. https://codereview.chromium.org/10914138/diff/21016/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): https://codereview.chromium.org/10914138/diff/21016/src/trusted/service_runtime/nacl_secure_service.c#newcode162 src/trusted/service_runtime/nacl_secure_service.c:162: int ...
8 years, 2 months ago (2012-09-26 18:01:44 UTC) #16
Petr Hosek
https://codereview.chromium.org/10914138/diff/21016/src/trusted/service_runtime/nacl_secure_service.c File src/trusted/service_runtime/nacl_secure_service.c (right): https://codereview.chromium.org/10914138/diff/21016/src/trusted/service_runtime/nacl_secure_service.c#newcode162 src/trusted/service_runtime/nacl_secure_service.c:162: int rv = 1; On 2012/09/26 18:01:44, bsy wrote: ...
8 years, 2 months ago (2012-09-26 18:49:34 UTC) #17
Mark Seaborn
This change seems to break run_pnacl_bad_browser_test when I roll it into Chromium (see the *_naclmore ...
8 years, 2 months ago (2012-09-28 16:37:45 UTC) #18
phosek
8 years, 2 months ago (2012-09-28 16:47:45 UTC) #19
We already have a fix, see https://codereview.chromium.org/10979061/, it's
just going in.

Petr


On Fri, Sep 28, 2012 at 9:37 AM, <mseaborn@chromium.org> wrote:

> This change seems to break run_pnacl_bad_browser_test when I roll it into
> Chromium (see the *_naclmore bot results on
>
http://codereview.chromium.**org/10989068/<http://codereview.chromium.org/109...).
>  Will you have a fix soon, or should
> we revert this for now?
>
> Mark
>
>
>
https://chromiumcodereview.**appspot.com/10914138/<https://chromiumcodereview...
>

-- 
You received this message because you are subscribed to the Google Groups
"Native-Client-Reviews" group.
To post to this group, send email to native-client-reviews@googlegroups.com.
To unsubscribe from this group, send email to
native-client-reviews+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/native-client-reviews?hl=en.

Powered by Google App Engine
This is Rietveld 408576698