diff options
author | Jiyong Park <jiyong@google.com> | 2019-02-12 01:08:57 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2019-02-12 23:07:08 +0900 |
commit | efc503d6770bfa37127090f76394c6a2ffc3db19 (patch) | |
tree | 25ee7ebdad77a49dc36afd1961bc533f7b42b3ed /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 808d176e7e0dd727c7f929622ec017f6e065c582 (diff) |
Greylist libraries are attempted to be loaded in the default ns
Some of the greylist libraries can be in directories other than
/system/lib. For example, libnativehelper.so is moved from the directory
to /apex/com.android.runtime/lib.
Previous behavior for greylist libraries is to find the lib under
/system/lib while "within" the current namespace which is usually the
classloader-namespace. Since the libs no longer exist there, linker
fails to load it and no further attempt is made.
This change fixes the problem by loading the greylist libs "from" the
default namespace. Since there is a link from the default namespace to
the namespace where the moved libraries are intended to be loaded (e.g.,
the 'runtime' namespace for libnativehelper.so), the call is successful.
Bug: 124201397
Test: bionic-unit-tests
Change-Id: I11d15993d18896bdf663c408f9e40d8a607c9b80
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions