HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

bwrap — Run programs in a lightweight sandbox. More information: <https://manned.org/bwrap>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
programscommandrunlightweightbwrapclimoresandbox
linux

Problem

How to use the bwrap command: Run programs in a lightweight sandbox. More information: <https://manned.org/bwrap>.

Solution

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}}

Code Snippets

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}}

Context

tldr-pages: linux/bwrap

Revisions (0)

No revisions yet.