diff --git a/rootdir/etc/ld.config.legacy.txt b/rootdir/etc/ld.config.legacy.txt index 7324ba96b..87926714a 100644 --- a/rootdir/etc/ld.config.legacy.txt +++ b/rootdir/etc/ld.config.legacy.txt @@ -79,8 +79,10 @@ namespace.runtime.visible = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = default -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# Need allow_all_shared_libs because libart.so can dlopen oat files in +# /system/framework and /data. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.default.allow_all_shared_libs = true ############################################################################### diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index 45e80e17c..b486411fc 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -158,8 +158,10 @@ namespace.runtime.visible = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = default -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# Need allow_all_shared_libs because libart.so can dlopen oat files in +# /system/framework and /data. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.default.allow_all_shared_libs = true ############################################################################### @@ -436,8 +438,8 @@ namespace.runtime.isolated = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = system -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.system.allow_all_shared_libs = true ############################################################################### @@ -601,8 +603,8 @@ namespace.runtime.visible = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = default -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.default.allow_all_shared_libs = true ############################################################################### diff --git a/rootdir/etc/ld.config.vndk_lite.txt b/rootdir/etc/ld.config.vndk_lite.txt index a762ba8b7..12007dc40 100644 --- a/rootdir/etc/ld.config.vndk_lite.txt +++ b/rootdir/etc/ld.config.vndk_lite.txt @@ -100,8 +100,10 @@ namespace.runtime.visible = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = default -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# Need allow_all_shared_libs because libart.so can dlopen oat files in +# /system/framework and /data. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.default.allow_all_shared_libs = true ############################################################################### @@ -373,8 +375,8 @@ namespace.runtime.isolated = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = default -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.default.allow_all_shared_libs = true ############################################################################### @@ -424,8 +426,8 @@ namespace.runtime.visible = true namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} namespace.runtime.links = default -# TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library -# when it exists. +# TODO(b/130340935): Use a dynamically created linker namespace similar to +# classloader-namespace for oat files, and tighten this up. namespace.runtime.link.default.allow_all_shared_libs = true ###############################################################################