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

am: 6bf96c1192

Change-Id: I65bc57fa4fe9fa1257ce0f4b5836616594643234
This commit is contained in:
Narayan Kamath
2016-11-10 23:58:54 +00:00
committed by android-build-merger

View File

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