Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f9886e1 authored by Wei Wang's avatar Wei Wang Committed by android-build-merger
Browse files

Merge "Restrict zram_writeback permission" am: 0ed7819d am: 8fc3c306

am: c22b9cb4

Change-Id: Iae50db20d985fd5b27e69353ddf5239767a02329
parents 93768d5e c22b9cb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;