diff options
| author | 2016-11-14 13:20:05 +0000 | |
|---|---|---|
| committer | 2016-11-14 13:20:05 +0000 | |
| commit | a5ff6c84a2f29c4900cf7b29a41bff189702dfe3 (patch) | |
| tree | 8241690cc62378052fd95373ff931a039169c651 | |
| parent | 3e85db46bcbe1a54d0901b9fb7230f2054c02609 (diff) | |
| parent | c50c43667f06a5d51c18b4f60472a12636cee74e (diff) | |
Zygote: Additional whitelisting for legacy devices. am: 5e2f7c6229 am: 6bf96c1192 am: 22e45fa247 am: d98e75feca am: 87dc13f249
am: c50c43667f
Change-Id: I11f57941eb00efafb14e0505131e66bc22fc68c6
| -rw-r--r-- | core/jni/fd_utils-inl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/fd_utils-inl.h b/core/jni/fd_utils-inl.h index 3f91feb254d7..d1129a3ef593 100644 --- a/core/jni/fd_utils-inl.h +++ b/core/jni/fd_utils-inl.h @@ -293,6 +293,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; } |