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

am: f369b3ce75

Change-Id: Id0794434479585b2cf4b4996256a3cb9374fd9a7
This commit is contained in:
Narayan Kamath
2016-11-09 20:16:06 +00:00
committed by android-build-merger

View File

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