Support "full" mode when updating bind mounts of a process.

Bug: 133829348
Test: manual
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
Change-Id: I5f48ecbfe8cce243fa75a2e8447ce1d4676003ad
This commit is contained in:
Sudheer Shanka 2019-05-30 16:40:20 -07:00
parent 6a3ef488e5
commit 8f2ff80e87

View file

@ -554,6 +554,8 @@ int VolumeManager::remountUid(uid_t uid, int32_t mountMode) {
storageSource = "/mnt/runtime/read";
} else if (mode == "write") {
storageSource = "/mnt/runtime/write";
} else if (mode == "full") {
storageSource = "/mnt/runtime/full";
} else {
// Sane default of no storage visible
_exit(0);