Merge "Restrict zram_writeback permission"

am: 0ed7819d6a

Change-Id: I9268e2bc46231167f8e1db645d6e79e403146a75
This commit is contained in:
Wei Wang 2019-02-01 19:39:14 -08:00 committed by android-build-merger
commit 8fc3c3065c

View file

@ -1444,7 +1444,7 @@ static bool PrepareZramDevice(const std::string& loop, off64_t size, const std::
}
// Prepare target path
unique_fd target_fd(TEMP_FAILURE_RETRY(open(loop.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0664)));
unique_fd target_fd(TEMP_FAILURE_RETRY(open(loop.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0600)));
if (target_fd.get() == -1) {
PERROR << "Cannot open target path: " << loop;
return false;