Zygote: Additional whitelisting for legacy devices.
am: 5e2f7c6229
Change-Id: I36adcd8393eab2bb4421f9e3e72302c5db37422a
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user