Android O IOT Preview 6 (4475743)
Add the --profile flag

This flag allows the caller to specify a sandboxing profile, which sets
various flags commonly used together.

It also adds the 'setup-mount' profile, which sets up a minimalistic
mount namespace rooted at /var/empty with /dev, /tmp, and /proc mounted.
This should make creating containers that don't hold to unnecessary
mounts even simpler.

Bug: 65450844
Test: minijail0 --profile=minimalistic-mountns -p -- /bin/mount

Change-Id: I0b566ebf8dcf2644f16b66a7bb0cf4268a983a46
2 files changed