Merge "Zygote: Additional whitelisting for legacy devices." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7bd25ab485
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user