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
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;
}