From 1a673c868c2d2d81fcaeab34b4a7c75d4a978584 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 10 May 2012 16:45:29 -0700 Subject: 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 --- VolumeManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1