minijail: unmount /proc, then mount
If we don't do this, --add-readonly-mounts gets us EBUSY because we inherit the
parent's rw mount of /proc. If we use MS_REMOUNT, we actually affect the mount
that is present in the parent namespace too (!); unmounting and mounting again
creates a new instance of procfs for us.
BUG=chromium-os:10841
TEST=platform_MiniJailReadOnlyFS
Change-Id: Id1e6336349519961dba591d1d01ef3b2f1b1b908
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3452
Reviewed-by: Chris Masone <cmasone@chromium.org>
1 file changed