commit | d4ce449ed02a3fa4246323356cb74e7921637c75 | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <[email protected]> | Tue Dec 04 20:00:32 2018 -0800 |
committer | Treehugger Robot <[email protected]> | Tue Mar 19 01:29:43 2019 +0000 |
tree | e73d016e3e07da5c61fd787d1b9d8246203cf8c5 | |
parent | 1a9e9101a215eba4071e9058540926b08451210c [diff] |
tools/compile_seccomp_policy: Add the beginning of a new parser This is the first of a series of changes that will introduce a new parser outlined in [1]. 1: https://docs.google.com/document/d/e/2PACX-1vQOeYLWmJJrRWvglnMo5cynkUe0gZ9wVsndLLePkJg6dfUXSOUWoveBBeY3u5nQMlEU4dt_vRgj0ifR/pub Bug: chromium:856315 Test: ./tools/parser_unittest.py Change-Id: Ia04cc07d3e2afe2620912abd7afb9a3d7b605ea0
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