tag | 03f907448b0ff7a48fa078ba324056d1e557ca54 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Oct 03 12:15:54 2018 -0700 |
object | 916c6c359e14df8c05fbb6d5619a3624e4586ec7 |
Android O MR1 IOT Release 1.0.5 (5014699)
commit | 916c6c359e14df8c05fbb6d5619a3624e4586ec7 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@google.com> | Thu Sep 27 14:17:53 2018 -0400 |
committer | Mike Frysinger <vapier@google.com> | Sun Sep 30 21:23:46 2018 -0400 |
tree | d45b190e3dee0ed057c6de879698e1273807dbd1 | |
parent | 677900fb3a5fcde716e0a07e15365acc46d7356f [diff] |
add a build-time knob to disable seccomp logging (-L) People like to turn on -L in places that they shouldn't because it enables more syscalls in seccomp than is desirable. Turn this into a build-time knob so we let devs run with this flag while making it into a stub on release builds. Bug: chromium:889063 Test: ran `./minijail0 -L -S /dev/null /bin/ls` with `make` and `make ALLOW_DEBUG_LOGGING=no` Change-Id: I57bea91a0713456e5830312a53f27250a4de5f23
The Minijail homepage and main repo is https://android.googlesource.com/platform/external/minijail/.
There might be other copies floating around, but this is the official one!
Minijail is a sandboxing and containment tool used in Chrome OS and Android. It provides an executable that can be used to launch and sandbox other programs, and a library that can be used by code to sandbox itself.
You're one git clone
away from happiness.
$ git clone https://android.googlesource.com/platform/external/minijail $ cd minijail
Releases are tagged as linux-vXX
: https://android.googlesource.com/platform/external/minijail/+refs
See the HACKING.md document for more details.
See the RELEASE.md document for more details.
We've got a couple of contact points.
The following talk serves as a good introduction to Minijail and how it can be used.
The Chromium OS project has a comprehensive sandboxing document that is largely based on Minijail.
After you play with the simple examples below, you should check that out.
# id uid=0(root) gid=0(root) groups=0(root),128(pkcs11) # minijail0 -u jorgelo -g 5000 /usr/bin/id uid=72178(jorgelo) gid=5000(eng) groups=5000(eng)
# minijail0 -u jorgelo -c 3000 -- /bin/cat /proc/self/status Name: cat ... CapInh: 0000000000003000 CapPrm: 0000000000003000 CapEff: 0000000000003000 CapBnd: 0000000000003000