Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192 am: 22e45fa247 am: d98e75feca am: 87dc13f249 am: c50c43667f am: a5ff6c84a2 am: 9efaadccc0
am: 6861821082
Change-Id: I3abe13ffda27d4920a989c7f91ac2643f15209a3
This commit is contained in:
@@ -279,6 +279,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