diff options
author | Kenny Root <kroot@google.com> | 2012-05-10 16:45:29 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2012-05-10 16:47:24 -0700 |
commit | 1a673c868c2d2d81fcaeab34b4a7c75d4a978584 (patch) | |
tree | 61d8f485b1cfa2186df82989f77e5b73700a802b /VolumeManager.cpp | |
parent | 348c8aba0d2df2996e0fe57900ef518c6aeb4b29 (diff) | |
download | system_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
Diffstat (limited to 'VolumeManager.cpp')
-rw-r--r-- | VolumeManager.cpp | 2 |
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); } |