|
NaCl: enable meta-based validation for shared libraries.
This is the Chrome-side half of a CL to allow mmaping and skipping validation
for chrome-extension: files we have seen before and know are safe. To do this
we need to know the path of the file on disk, but we don't entirely trust the
renderer not to tamper with it. To work around this, a nonce is passed along
with the file handle. This nonce can be used by the NaCl process to acquire the
file handle directly from the browser process, as well as a fresh copy of the
file handle.
This change significantly revises the OpenNaClExecutable method of the
PPB_NaCl_Private interface. The method was added anticipation of this CL, but
the overall design shifted after the method was added.
BUG=https://code.google.com/p/chromium/issues/detail?id=224434
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202278
R=dmichael@chromium.org, jschuh@chromium.org, mseaborn@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202702
Total comments: 11
Total comments: 58
Total comments: 4
Total comments: 51
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+441 lines, -132 lines) |
Patch |
 |
M |
chrome/browser/nacl_host/nacl_browser.h
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/nacl_host/nacl_browser.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+81 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/nacl_host/nacl_file_host.cc
|
View
|
1
2
3
|
3 chunks |
+36 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/nacl_host/nacl_process_host.h
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/nacl_host/nacl_process_host.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+82 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/nacl_messages.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/render_messages.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/nacl/nacl_listener.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/nacl/nacl_validation_db.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/nacl/nacl_validation_query.h
|
View
|
1
2
3
4
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/nacl/nacl_validation_query.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+28 lines, -0 lines |
1 comment
|
Download
|
 |
M |
chrome/nacl/nacl_validation_query_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/pepper/ppb_nacl_private_impl.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/api/private/ppb_nacl_private.idl
|
View
|
1
2
3
|
2 chunks |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ppapi/c/private/ppb_nacl_private.h
|
View
|
1
2
3
|
4 chunks |
+5 lines, -19 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/file_downloader.h
|
View
|
1
2
3
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/file_downloader.cc
|
View
|
1
2
3
|
6 chunks |
+22 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/plugin.h
|
View
|
1
2
3
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/plugin.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+27 lines, -30 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/service_runtime.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ppapi/native_client/src/trusted/plugin/service_runtime.cc
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+24 lines, -18 lines |
0 comments
|
Download
|
Total messages: 25 (0 generated)
|