1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages/linux/bwrap.md
Managor 7c610614cb
bwrap: add page (#15643)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2025-02-06 22:40:16 +05:30

356 B

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