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

Issue 7031023: Run NaClEnvCleanser in standalone sel_ldr (in addition to sel_main_chrome). Add a couple of ld.so... (Closed)

Created:
9 years, 7 months ago by Evgeniy Stepanov
Modified:
9 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Allow all NACLENV_* vars through (but losing the prefix). Even in sel_ldr. This change will let us run Valgrind on unmodified nexes by LD_PRELOAD-ing libvalgrind.so in runtime. This is how Valgrind works with native binaries. Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=5415

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -24 lines) Patch
M src/trusted/nonnacl_util/sel_ldr_launcher.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/trusted/service_runtime/build.scons View 1 2 3 11 chunks +11 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/env_cleanser.h View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M src/trusted/service_runtime/env_cleanser.c View 1 2 3 4 5 7 chunks +43 lines, -8 lines 0 comments Download
M src/trusted/service_runtime/env_cleanser_test.c View 1 2 3 4 5 chunks +35 lines, -5 lines 0 comments Download
M src/trusted/service_runtime/sel_main.c View 1 2 3 5 chunks +27 lines, -1 line 0 comments Download
M src/trusted/service_runtime/sel_main_chrome.c View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Evgeniy Stepanov
9 years, 7 months ago (2011-05-17 12:16:26 UTC) #1
eugenis
Please see if this is acceptable. I'll extend env_cleanser_test then. sel_main_chrome already passes the filtered ...
9 years, 7 months ago (2011-05-17 12:20:09 UTC) #2
eugenis
Mark suggested passing through all environment variables starting with some prefix (NACL_ or NACLENV_ or ...
9 years, 7 months ago (2011-05-17 13:32:49 UTC) #3
pasko-google - do not use
On 2011/05/17 13:32:49, eugenis wrote: > Mark suggested passing through all environment variables starting with ...
9 years, 7 months ago (2011-05-17 13:45:50 UTC) #4
eugenis
PTAL
9 years, 7 months ago (2011-05-17 14:33:01 UTC) #5
eugenis
ping
9 years, 7 months ago (2011-05-18 14:30:42 UTC) #6
bsy
seems reasonable; just a q regarding adding env_cleanser to the ldr_inputs -- i think this ...
9 years, 7 months ago (2011-05-18 18:25:07 UTC) #7
Evgeniy Stepanov
http://codereview.chromium.org/7031023/diff/5003/src/trusted/service_runtime/build.scons File src/trusted/service_runtime/build.scons (right): http://codereview.chromium.org/7031023/diff/5003/src/trusted/service_runtime/build.scons#newcode214 src/trusted/service_runtime/build.scons:214: ldr_inputs += ['env_cleanser'] On 2011/05/18 18:25:07, bsy wrote: > ...
9 years, 7 months ago (2011-05-18 19:05:05 UTC) #8
bsy
bradn: about... a year or more ago... you mentioned that you had some ideas on ...
9 years, 7 months ago (2011-05-18 19:32:28 UTC) #9
eugenis
I've changed libsel.a to not include env_cleanser.o, updated env_cleanser_test, and also tweaked sel_ldr_launcher.cc a bit ...
9 years, 7 months ago (2011-05-19 08:20:34 UTC) #10
eugenis
Is it OK to commit?
9 years, 7 months ago (2011-05-24 09:33:29 UTC) #11
bsy
9 years, 7 months ago (2011-05-24 13:01:24 UTC) #12
lgtm.

sorry 'bout the delay.

Powered by Google App Engine
This is Rietveld 408576698