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

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

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

am: 22e45fa2

Change-Id: I70befe1803e89e9e2bbcaa70738cf53b16ec7280
parents 8e6e5a15 22e45fa2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -295,6 +295,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;
  }