Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192 am: 22e45fa247 am: d98e75feca am: 87dc13f249 am: c50c43667f

am: a5ff6c84a2

Change-Id: I62e2180c0a3b2d9e2a11b3ad4d93288bed1ccef6
This commit is contained in:
Narayan Kamath
2016-11-14 13:27:51 +00:00
committed by android-build-merger

View File

@@ -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;
}