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

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

Zygote: Additional whitelisting for legacy devices. am: 5e2f7c62 am:...

Zygote: Additional whitelisting for legacy devices. am: 5e2f7c62 am: 6bf96c11 am: 22e45fa2 am: d98e75fe am: 87dc13f2 am: c50c4366 am: a5ff6c84
am: 9efaadcc

Change-Id: I8a47806998957121f0de14e7e5bdb4d8e39944de
parents 8ff9e710 9efaadcc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -279,6 +279,12 @@ class FileDescriptorInfo {
      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;
  }