OSDN Git Service

Allow traversal into /storage paths.
authorJeff Sharkey <jsharkey@android.com>
Tue, 17 Sep 2013 23:25:05 +0000 (16:25 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 18 Sep 2013 00:21:41 +0000 (17:21 -0700)
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: I620c8f02f08b149437dfa5705e05a27b6994d2db

vm/Init.cpp

index 2c81f67..f1762c9 100644 (file)
@@ -1708,7 +1708,7 @@ static bool 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) {
             SLOGE("Failed to mount tmpfs to %s: %s", target_base, strerror(errno));
             return -1;
         }