Skip to content

Commit

Permalink
bwrap: add page (#15643)
Browse files Browse the repository at this point in the history
Co-authored-by: Juri Dispan <[email protected]>
  • Loading branch information
Managor and gutjuri authored Feb 6, 2025
1 parent c3b82e7 commit 7c61061
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/linux/bwrap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# bwrap

> Run programs in a lightweight sandbox.
> More information: <https://manned.org/bwrap>.
- Run a program in a read-only environment:

`bwrap --ro-bind / / {{/bin/bash}}`

- Give the environment access to devices, process information and create a `tmpfs` for it:

`bwrap --dev-bind /dev /dev --proc /proc --ro-bind / / --tmpfs /tmp {{/bin/bash}}`

0 comments on commit 7c61061

Please sign in to comment.