commit | c20c85008d7ad1e8152c426bc4f0abf8196c7643 | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Wed Jul 18 17:43:28 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Wed Jul 18 19:48:08 2018 -0700 |
tree | 3a606af56b491c5d7270defac7edba2e87edbf51 | |
parent | 54f40303d5632e7f5852cd9f467454281c4f979a [diff] |
adb: Preserve the original mount flags when remounting This change preserves any additional flags mount flags (e.g. MS_NODEV) that any of the mounts would have. This avoids unnecessarily opening up permissions, and also allows kernels that have additional restrictions about what mount flags can be used to be happy with the remounts. Bug: 111618714 Test: `adb remount` works in Chrome OS Test: `adb remount` works in sailfish_aosp Change-Id: I20d9f2feaf3a47b93bfcdfb4164ee61546ec0b68