diff options
| author | Luis Hector Chavez <lhchavez@google.com> | 2018-02-14 08:36:16 -0800 |
|---|---|---|
| committer | Luis Hector Chavez <lhchavez@google.com> | 2018-02-14 20:51:06 +0000 |
| commit | 30780a73053d968460cbe9595f8024de07460c4e (patch) | |
| tree | 2dbaf6a103e9fd52750da803b371661eac34c643 /trusty/coverage/coverage_test.cpp | |
| parent | 7c6b0242415b3cfdb5d38fecbdfdcdedea2913b0 (diff) | |
init.rc: Remount / with MS_REMOUNT|MS_BIND
Since we only want to change the ro flag on / (and leave all other mount
flags alone), this can also be achieved by passing MS_REMOUNT|MS_BIND,
even if the mount is not a bind-mount.
This aims to make running Android within a user namespace easier, since
remounts without the MS_BIND flag are forbidden.
Bug: 73255020
Test: aosp_sailfish still boots
Test: rootfs on / type rootfs (rw,seclabel)
/dev/root on / type ext4 (ro,seclabel,relatime,data=ordered)
Change-Id: I2f89a8badfc467db47304c9355648e8fd8ad1272
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
