summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-09-17 16:25:12 -0700
committerJeff Sharkey <jsharkey@android.com>2013-09-17 17:21:48 -0700
commit52cd1e8f2f0622a174f883e24151ab873170787f (patch)
tree01aab8fb4ccd930e7b11bb353f1d344170f30acf /runtime/runtime.cc
parent5666afd6854b5634ae741dc8a3a633fc47d52168 (diff)
downloadart-52cd1e8f2f0622a174f883e24151ab873170787f.zip
art-52cd1e8f2f0622a174f883e24151ab873170787f.tar.gz
art-52cd1e8f2f0622a174f883e24151ab873170787f.tar.bz2
Allow traversal into /storage paths.
Apps are no longer required to have sdcard_r or sdcard_rw to access some parts of external storage. Relax the mount parameters to allow everyone to traverse. Bug: 10577808 Change-Id: Ife3c6fb18028f7093ff853459c1ca1e0ec7a6d01
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 09cbd0b..c87ce6c 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -773,7 +773,7 @@ bool Runtime::InitZygote() {
const char* target_base = getenv("EMULATED_STORAGE_TARGET");
if (target_base != NULL) {
if (mount("tmpfs", target_base, "tmpfs", MS_NOSUID | MS_NODEV,
- "uid=0,gid=1028,mode=0050") == -1) {
+ "uid=0,gid=1028,mode=0751") == -1) {
LOG(WARNING) << "Failed to mount tmpfs to " << target_base;
return false;
}