OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="sandbox-internals"> | 3 <section id="sandbox-internals"> |
4 <span id="sandbox-internals-index"></span><h1 id="sandbox-internals"><span id="s
andbox-internals-index"></span>Sandbox Internals</h1> | 4 <span id="sandbox-internals-index"></span><h1 id="sandbox-internals"><span id="s
andbox-internals-index"></span>Sandbox Internals</h1> |
5 <p>The sandbox internals documentation describes implementation details for | 5 <p>The sandbox internals documentation describes implementation details for |
6 Native Client sandboxing, which is also used by Portable Native | 6 Native Client sandboxing, which is also used by Portable Native |
7 Client. These details can be useful to reimplement a sandbox, or to | 7 Client. These details can be useful to reimplement a sandbox, or to |
8 write assembly code that follows sandboxing rules for Native Client | 8 write assembly code that follows sandboxing rules for Native Client |
9 (Portable Native Client does not allow platform-specific assembly code).</p> | 9 (Portable Native Client does not allow platform-specific assembly code).</p> |
| 10 <p>As an implementation detail, the Native Client sandboxes described here |
| 11 are currently used by Portable Native Client to execute code on the |
| 12 corresponding machines in a safe manner. The portable bitcode contained |
| 13 in a <strong>pexe</strong> is translated to a machine-specific <strong>nexe</str
ong> before |
| 14 execution. This may change at a point in time: Portable Native Client |
| 15 doesn’t necessarily need these sandboxes to execute code on these |
| 16 machines. Note that the Portable Native Client compiler itself is also |
| 17 untrusted: it too runs in a Native Client sandbox described below.</p> |
10 <p>Native Client has sandboxes for:</p> | 18 <p>Native Client has sandboxes for:</p> |
11 <ul class="small-gap"> | 19 <ul class="small-gap"> |
12 <li><a class="reference internal" href="/native-client/reference/sandbox_interna
ls/arm-32-bit-sandbox.html#arm-32-bit-sandbox"><em>ARM 32-bit</em></a>.</li> | 20 <li><a class="reference internal" href="/native-client/reference/sandbox_interna
ls/arm-32-bit-sandbox.html#arm-32-bit-sandbox"><em>ARM 32-bit</em></a>.</li> |
13 <li>x86-32</li> | 21 <li>x86-32: the original design is described in <a class="reference external" hr
ef="http://research.google.com/pubs/archive/34913.pdf">Native Client: A Sandbox |
14 <li>x86-64</li> | 22 for Portable, Untrusted x86 Native Code</a>, the current |
15 <li>MIPS32</li> | 23 design has changed slightly since then.</li> |
| 24 <li>x86-64: the original design is described in <a class="reference external" hr
ef="http://research.google.com/pubs/archive/35649.pdf">Adapting Software Fault |
| 25 Isolation to Contemporary CPU Architectures</a>, the current |
| 26 design has changed slightly since then.</li> |
| 27 <li>MIPS32, described in the <a class="reference external" href="https://code.go
ogle.com/p/nativeclient/issues/attachmentText?id=2275&aid=22750018000&na
me=native-client-mips-0.4.txt">overview of Native Client for MIPS</a>, |
| 28 and <a class="reference external" href="https://code.google.com/p/nativeclient/i
ssues/detail?id=2275">bug 2275</a>.</li> |
16 </ul> | 29 </ul> |
17 </section> | 30 </section> |
18 | 31 |
19 {{/partials.standard_nacl_article}} | 32 {{/partials.standard_nacl_article}} |
OLD | NEW |