Mbox Usage 1: Installing packages without rootUsage 2: Running unknown binary safelyUsage 3: Checkpointing filesystemUsage 4: Build/development environmentUsage 5: Profile-based sandbox 介绍
Mbox 是一个轻量级的沙箱机制,任何用户可在没人特权的操作系统内执行程序。
示例:
Usage 1: Installing packages without root
$ mbox -R -- apt-get install git (-R: emulate a fakeroot environment)
Usage 2: Running unknown binary safely
$ mbox -n -- wget google.com (-n: disable remote network accesses)
Usage 3: Checkpointing filesystem
$ mbox -i -- sh (-i: enable interactive commit-mode)
Usage 4: Build/development environment
$ mbox -r outdir -- make (-r dir: specify a sandbox filesystem)
Usage 5: Profile-based sandbox
$ mbox -p build.prof -- ./configure (-p prof: enable profile-based policy) ## build.prof[fs] allow: . hide: ~