Go to file
Luis Hector Chavez 0db4b7a95b 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
2018-02-27 14:37:26 -08:00
adb Change the remount command to be more container-friendly 2018-02-27 14:37:26 -08:00
adf Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
base Base: Add an NDK-compiled version of libbase 2018-02-21 01:59:24 +00:00
bootstat Fix PDK build 2018-02-14 03:03:28 +00:00
cpio Possible null pointer miss on realloc 2017-03-23 22:41:14 +01:00
debuggerd Merge "bpfmt." 2018-02-20 02:02:59 +00:00
demangle bpfmt. 2018-02-16 17:58:14 -08:00
fastboot Merge "Fix fastboot memory corruption." 2018-01-19 22:39:14 +00:00
fs_mgr Use vold's mount with metadata encryption service. 2018-02-01 14:54:04 -08:00
gatekeeperd Merge "gatekeeperd: use std::unique_ptr" into oc-mr1-dev 2017-08-18 19:18:46 +00:00
healthd healthd: don't report fake data for battery-less devices 2018-02-05 19:48:30 +00:00
include Move android_filesystem_config.h => fs_config.h 2017-08-03 17:20:27 +00:00
init init: log control messages along with the process that sent them 2018-02-21 16:36:03 -08:00
libappfuse bpfmt. 2018-02-16 17:58:14 -08:00
libasyncio bpfmt. 2018-02-16 17:58:14 -08:00
libbacktrace Add ability to skip function name resolution. 2018-02-20 17:10:23 -08:00
libbinderwrapper libbinderwrapper: Android.mk -> Android.bp 2017-04-25 15:55:26 -07:00
libcrypto_utils Mark the modules as VNDK in Android.bp 2017-08-03 06:43:23 +00:00
libcutils Add tracing tags to vibrator 2018-02-13 18:29:40 +00:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Use -Werror in system/core 2017-11-01 11:32:55 -07:00
libion bpfmt. 2018-02-16 17:58:14 -08:00
libkeyutils Add libkeyutils. 2017-05-10 14:53:28 -07:00
liblog Expose __android_log_buf_print and __android_log_buf_write to NDK 2018-02-20 14:59:28 -08:00
libmemtrack Add OWNERS. 2017-12-07 13:30:03 -08:00
libmemunreachable bpfmt. 2018-02-16 17:58:14 -08:00
libmetricslogger Add OWNERS. 2017-12-07 13:30:03 -08:00
libnativebridge bpfmt. 2018-02-16 17:58:14 -08:00
libnativeloader bpfmt. 2018-02-16 17:58:14 -08:00
libnetutils Add OWNERS. 2017-12-07 13:30:03 -08:00
libpackagelistparser bpfmt. 2018-02-16 17:58:14 -08:00
libpixelflinger MIPS[64]: codeflinger: Fix build due to unused variable warnings 2017-11-06 16:38:49 +01:00
libprocessgroup Add memcg related configs to init. 2017-07-18 15:58:40 -07:00
libprocinfo bpfmt. 2018-02-16 17:58:14 -08:00
libqtaguid Redirect qtaguid native call to netd fwmark client 2017-11-09 18:02:22 -08:00
libsparse Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
libsuspend Add force_suspend function 2018-01-19 12:30:39 -08:00
libsync Merge "libsync: Add fence info tests" 2017-09-26 23:46:32 +00:00
libsystem bpfmt. 2018-02-16 17:58:14 -08:00
libsysutils Don't complain that the DNSSL RA option is "unknown". 2017-11-28 06:42:04 +00:00
libunwindstack Change the GetAdjustedRelPc to GetPcAdjustment. 2018-02-21 20:16:39 -08:00
libusbhost Remove urb request size maximum. 2018-02-07 16:12:14 -08:00
libutils bpfmt. 2018-02-16 17:58:14 -08:00
libvndksupport bpfmt. 2018-02-16 17:58:14 -08:00
libziparchive zip_archive: Fix a few more badly written tests. 2017-12-27 09:42:00 +00:00
lmkd lmkd: use after free 2018-02-05 11:00:59 -08:00
logcat bpfmt. 2018-02-16 17:58:14 -08:00
logd bpfmt. 2018-02-16 17:58:14 -08:00
logwrapper bpfmt. 2018-02-16 17:58:14 -08:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
property_service Introduce property types 2018-01-16 14:44:40 -08:00
qemu_pipe Add OWNERS. 2017-12-07 13:30:03 -08:00
reboot reboot: only pause indefinitely for non-shutdown operations 2017-09-29 16:29:52 +00:00
rootdir Merge "init.rc: Add nodev,noexec,nosuid to /config" 2018-02-15 03:01:33 +00:00
run-as run-as: Keep supplementary groups. 2017-09-29 15:34:23 -04:00
sdcard Remove FUSE logic; it's only a sdcardfs wrapper. 2018-01-12 15:41:55 -07:00
shell_and_utilities Reland: Add getprop to toolbox 2018-01-10 11:26:24 -08:00
storaged Merge "Add OWNERS." 2017-12-07 23:21:26 +00:00
toolbox Build toolbox with _FILE_OFFSET_BITS=64. 2018-01-22 16:15:55 -08:00
trusty bpfmt. 2018-02-16 17:58:14 -08:00
usbd bpfmt. 2018-02-16 17:58:14 -08:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.clang-format-4 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.bp Export android_filesystem_config.h as a filegroup 2017-01-17 18:20:28 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add VNDK version for namespace configuration files 2017-12-13 10:31:04 +09:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00
platform_tools_tool_version.mk Fix warning on the build servers 2017-05-25 12:35:40 -07:00