Merge "init.rc: Remount / with MS_REMOUNT|MS_BIND|MS_NODEV"

am: 19ef02ef42

Change-Id: I94c5641308b7b2760bdc4734158011d9cb7146aa
This commit is contained in:
Luis Hector Chavez 2018-07-11 10:49:41 -07:00 committed by android-build-merger
commit 81c97bc46f

View file

@ -327,8 +327,8 @@ on post-fs
start vndservicemanager start vndservicemanager
# Once everything is setup, no need to modify /. # Once everything is setup, no need to modify /.
# The bind+ro combination avoids modifying any other mount flags. # The bind+remount combination allows this to work in containers.
mount rootfs rootfs / remount bind ro mount rootfs rootfs / remount bind ro nodev
# Mount shared so changes propagate into child namespaces # Mount shared so changes propagate into child namespaces
mount rootfs rootfs / shared rec mount rootfs rootfs / shared rec
# Mount default storage into root namespace # Mount default storage into root namespace