Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192 am: 22e45fa247

am: d98e75feca

Change-Id: Ic63a80f3a591956fd82a223c74050a24d7805add
This commit is contained in:
Narayan Kamath
2016-11-14 12:52:53 +00:00
committed by android-build-merger

View File

@@ -294,6 +294,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;
}