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
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index fe1ce8e..4c1621b 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -570,7 +570,7 @@
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);
}