Zygote: Additional whitelisting for legacy devices.
am: 7d302e018d
Change-Id: I15f8e0ec93f502ca45a9b00d93baa66780701996
This commit is contained in:
@@ -297,6 +297,12 @@ class FileDescriptorInfo {
|
|||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user