summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-05-10 16:45:29 -0700
committerThe Android Automerger <android-build@android.com>2012-05-10 18:09:40 -0700
commit4817b30fb3572e1dee0724eb202f2ea604feaf8f (patch)
tree61d8f485b1cfa2186df82989f77e5b73700a802b
parent59f31de0d445b61a1f04d1362c276a960ebbea70 (diff)
downloadsystem_vold-4817b30fb3572e1dee0724eb202f2ea604feaf8f.zip
system_vold-4817b30fb3572e1dee0724eb202f2ea604feaf8f.tar.gz
system_vold-4817b30fb3572e1dee0724eb202f2ea604feaf8f.tar.bz2
Native library loading needs to read directory
When calling System.loadLibrary(), it needs to be able to read the directory to load the file. We could probably fix that, but changing permissions here is faster. Bug: 6478606 Change-Id: I296b0805839da5a19950157f9a16755a4d258ca8
-rw-r--r--VolumeManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index fe1ce8e..4c1621b 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -570,7 +570,7 @@ int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* f
result |= fchown(fd, AID_SYSTEM, privateFile? gid : AID_SYSTEM);
if (ftsent->fts_info & FTS_D) {
- result |= fchmod(fd, 0711);
+ result |= fchmod(fd, 0755);
} else if (ftsent->fts_info & FTS_F) {
result |= fchmod(fd, privateFile ? 0640 : 0644);
}