diff options
| author | 2016-11-09 10:20:00 +0000 | |
|---|---|---|
| committer | 2016-11-09 10:20:04 +0000 | |
| commit | 7bd25ab4850e8b14c37e3f66fb9432fc73c9c8d4 (patch) | |
| tree | 363316c63dca232ab887b1d7ad995054c9246934 | |
| parent | d60156dfc6f1183cd4364224964919e30fa53e50 (diff) | |
| parent | 7d302e018db99e859b465413d514406fb02f4d8d (diff) | |
Merge "Zygote: Additional whitelisting for legacy devices." into lmp-dev
| -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 2d7ba1c58465..53b2a0ddc1ca 100644 --- a/core/jni/fd_utils-inl.h +++ b/core/jni/fd_utils-inl.h @@ -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; } |