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

Commit b2fa045d authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12888383 from af7288e6 to 25Q2-release

Change-Id: I380913fd6e448be7e39ccd876aa5203e5cf52855
parents e714ca38 af7288e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -390,8 +390,8 @@ static int memfd_set_prot_region(int fd, int prot) {
    }

    /* We would only allow read-only for any future file operations */
    if (fcntl(fd, F_ADD_SEALS, F_SEAL_FUTURE_WRITE | F_SEAL_SEAL) == -1) {
        ALOGE("memfd_set_prot_region(%d, %d): F_SEAL_FUTURE_WRITE | F_SEAL_SEAL seal failed: %s\n",
    if (fcntl(fd, F_ADD_SEALS, F_SEAL_FUTURE_WRITE) == -1) {
        ALOGE("memfd_set_prot_region(%d, %d): F_SEAL_FUTURE_WRITE seal failed: %s\n",
              fd, prot, strerror(errno));
        return -1;
    }