summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2018-02-21 21:19:07 -0800
committerLuis Hector Chavez <lhchavez@google.com>2018-02-27 14:37:26 -0800
commit0db4b7a95bc080cc48f190210b7752af4e8e2794 (patch)
treef19c598a218ac00dd70ffc25c101f4ae4ad17a11 /libutils/Unicode.cpp
parentcdf778f5d92ab8748897a4d95693524d3273c23a (diff)
Change the remount command to be more container-friendly
Passing in MS_REMOUNT | MS_BIND tells the kernel to only remove the MS_RDONLY flag and keep all the other flags the same. This is also the only kind of remount that is allowed in Linux containers (to be more precise, within user namespaces). This change also attempts to always run the remount command when dealing with /, since containers will almost always run a loop device, and since the number of the device changes, it is not convenient to put it in the fstab. Plus, the container won't have permission to modify it, but might be able to perform the remount. Bug: 72178046 Test: `adb remount` works in both sailfish and Chrome OS Change-Id: I9e8ec8afcd57f67875a312824667768b3aa89faa
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions