minijail: Allow static binaries in a bind mount to run
A previous commit placed a restriction on running static binaries and
using bind mounts. Remove that restriction by checking if the binary
path is in a bind mount and rebasing the path on to the bind mount
source path so that the executable can be accessed from outside the
chroot. This is needed so bind mounts can be specified when running a
statically linked init program for Android.
TEST=security_Minijail0, run a static init with bind mounts.
Signed-off-by: Dylan Reid <firstname.lastname@example.org>
2 files changed