Zygote: Additional whitelisting for legacy devices.

am: f701ba36b3

Change-Id: Ic12fdc0261f258dcd1019290a057fef4fcedd0f3
This commit is contained in:
Narayan Kamath
2017-01-10 22:30:41 +00:00
committed by android-build-merger

View File

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