platform_system_core/libnativeloader
Martin Stjernholm 7888b5cdd7 Avoid runtime namespace becoming parent for classloader-namespace.
Passing nullptr as parent namespace to android_create_namespace makes it use
the namespace of the caller as parent, which typically is the runtime
namespace. That in turn causes classloader-namespace to inherit any
libraries in the shared group of the runtime namespace, i.e. any libraries
that have been loaded in it with RTLD_GLOBAL or DF_1_GLOBAL up to that
point.

Let's instead pass the platform namespace from the linker config as fallback
when a parent namespace cannot be found. That is also what happened before
libnativeloader moved into the runtime namespace.

Test: Flash and boot
Test: atest CtsJniTestCases (on cuttlefish and taimen)
Bug: 124501296
Change-Id: If2faee74e2bdcf95d19516faec340fedcdd07e29
2019-02-23 03:46:27 +00:00
..
include/nativeloader Pass the Java caller's location to OpenNativeLibrary. 2019-01-18 14:07:27 +00:00
test shim libraries for libnativeloader and libnativebridge 2019-02-12 19:35:45 +09:00
.clang-format Set libnativeloader style to clang-format-2 2017-03-29 17:33:12 -07:00
Android.bp Remove dependency on libcutils 2019-02-22 08:55:48 +00:00
libnativeloader.map.txt Move to C API of libnativeloader. 2019-01-16 13:40:28 +00:00
native_loader.cpp Avoid runtime namespace becoming parent for classloader-namespace. 2019-02-23 03:46:27 +00:00
native_loader_lazy.cpp shim libraries for libnativeloader and libnativebridge 2019-02-12 19:35:45 +09:00
OWNERS Add runtime module members to owners. 2019-01-16 22:00:48 +00:00