diff options
author | mqi <mqi@codeaurora.org> | 2015-06-01 14:59:31 +0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2016-07-26 09:47:00 -0700 |
commit | 87fd250c5fa2aad3738f6b03fa7e16d274abb506 (patch) | |
tree | 42aa98eb5aacac6bb14ac74755e7f57f9452d279 /telecomm/java/com | |
parent | 75c84499bde3e8e0555cd9fda1cde5d758a8b8d4 (diff) | |
download | frameworks_base-87fd250c5fa2aad3738f6b03fa7e16d274abb506.zip frameworks_base-87fd250c5fa2aad3738f6b03fa7e16d274abb506.tar.gz frameworks_base-87fd250c5fa2aad3738f6b03fa7e16d274abb506.tar.bz2 |
Improve the scan process
Use multi task to speed up the scan process
CRs-Fixed: 984513
base: fix native crash in system_server
Currently PackageManagerService uses multi-thread to scan
packages to speed up, when scan each package, it sometimes
will call SELinux's restorecon, then libselinux uses global
variable fc_sehandle to selabel_lookup and write in compile_regex,
so it's not thread-safe, so will cause invalid address with
possibility. From backtrace, the final crash happens in pcre_exec.
Add one lock in NativeLibraryHelper to make restorecon safe.
Change-Id: Ida43fcda01d3450befea6afa0be5da27bb195def
CRs-Fixed: 1002406, 1027381
Diffstat (limited to 'telecomm/java/com')
0 files changed, 0 insertions, 0 deletions