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

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

Zygote: Additional whitelisting for legacy devices. am: 7d302e01

am: f369b3ce

Change-Id: Id0794434479585b2cf4b4996256a3cb9374fd9a7
parents b0a78313 f369b3ce
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -297,6 +297,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;
  }