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

Commit 7a694067 authored by Narayan Kamath's avatar Narayan Kamath Committed by android-build-merger
Browse files

Zygote: Additional whitelisting for legacy devices.

am: f701ba36

Change-Id: Ic12fdc0261f258dcd1019290a057fef4fcedd0f3
parents 53726c0b f701ba36
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -295,6 +295,12 @@ class FileDescriptorInfo {
      return true;
      return true;
    }
    }


    // All regular files that are placed under this path are whitelisted automatically.
    static const std::string kZygoteWhitelistPath = "/vendor/zygote_whitelist/";
    if (StartsWith(path, kZygoteWhitelistPath) && path.find("/../") == std::string::npos) {
      return true;
    }

    return false;
    return false;
  }
  }