summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-05-10 16:45:29 -0700
committerKenny Root <kroot@google.com>2012-05-10 16:47:24 -0700
commit1a673c868c2d2d81fcaeab34b4a7c75d4a978584 (patch)
tree61d8f485b1cfa2186df82989f77e5b73700a802b
parent348c8aba0d2df2996e0fe57900ef518c6aeb4b29 (diff)
downloadsystem_vold-1a673c868c2d2d81fcaeab34b4a7c75d4a978584.zip
system_vold-1a673c868c2d2d81fcaeab34b4a7c75d4a978584.tar.gz
system_vold-1a673c868c2d2d81fcaeab34b4a7c75d4a978584.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);
}