Skip to content

Commit 5e26f88

Browse files
rocketsh sandbox
1 parent 1329257 commit 5e26f88

6 files changed

Lines changed: 436 additions & 386 deletions

File tree

docpages/user-guide/commands/rocketsh.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,22 @@ Show all commands stored in the command history, which you may retrieve with the
169169
history
170170
```
171171

172+
#### sandbox
173+
174+
Launches a command in a sandboxed environment. The sandboxed environment cannot run various unsafe BASIC functions. All children
175+
of the sandboxed process also inherit the same restrictions.
176+
177+
```basic
178+
sandbox dir /programs
179+
```
180+
181+
**While sandboxed, a BASIC program cannot:**
182+
183+
- Write to or delete files or directories
184+
- Load or unload kernel modules
185+
- Write to or read from raw memory (including buffers)
186+
- Perform raw hardware I/O
187+
172188
### Rocketsh Variables
173189

174190
The rocketsh shell allows you to change certain variables that influence how the shell operates. These are:

docs/doxygen_crawl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,7 @@
13721372
<a href="rocketsh.html#rocket-shell-commands"/>
13731373
<a href="rocketsh.html#rocketsh-variables"/>
13741374
<a href="rocketsh.html#run"/>
1375+
<a href="rocketsh.html#sandbox"/>
13751376
<a href="rocketsh.html#task"/>
13761377
<a href="rocketsh.html#up"/>
13771378
<a href="rocketsh.html#version"/>

docs/rocketsh.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,18 @@ <h4 class="doxsection"><a class="anchor" id="dirs"></a>
234234
history</h4>
235235
<p>Show all commands stored in the command history, which you may retrieve with the cursor keys.</p>
236236
<div class="fragment"><div class="line">history</div>
237-
</div><!-- fragment --><h3 class="doxsection"><a class="anchor" id="rocketsh-variables"></a>
237+
</div><!-- fragment --><h4 class="doxsection"><a class="anchor" id="sandbox"></a>
238+
sandbox</h4>
239+
<p>Launches a command in a sandboxed environment. The sandboxed environment cannot run various unsafe BASIC functions. All children of the sandboxed process also inherit the same restrictions.</p>
240+
<div class="fragment"><div class="line">sandbox dir /programs</div>
241+
</div><!-- fragment --><p><b>While sandboxed, a BASIC program cannot:</b></p>
242+
<ul>
243+
<li>Write to or delete files or directories</li>
244+
<li>Load or unload kernel modules</li>
245+
<li>Write to or read from raw memory (including buffers)</li>
246+
<li>Perform raw hardware I/O</li>
247+
</ul>
248+
<h3 class="doxsection"><a class="anchor" id="rocketsh-variables"></a>
238249
Rocketsh Variables</h3>
239250
<p>The rocketsh shell allows you to change certain variables that influence how the shell operates. These are:</p>
240251
<h4 class="doxsection"><a class="anchor" id="path"></a>

0 commit comments

Comments
 (0)