Anton Hansson | a82f161 | 2019-11-28 17:15:11 +0000 | [diff] [blame] | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # |
| 3 | # Bionic loader config file for the sdkext apex. |
| 4 | |
| 5 | dir.sdkext = /apex/com.android.sdkext/bin/ |
| 6 | |
| 7 | [sdkext] |
| 8 | additional.namespaces = platform |
| 9 | |
| 10 | namespace.default.isolated = true |
| 11 | namespace.default.links = platform |
| 12 | namespace.default.link.platform.allow_all_shared_libs = true |
| 13 | |
| 14 | ############################################################################### |
| 15 | # "platform" namespace: used for NDK libraries |
| 16 | ############################################################################### |
| 17 | namespace.platform.isolated = true |
| 18 | namespace.platform.search.paths = /system/${LIB} |
| 19 | namespace.platform.asan.search.paths = /data/asan/system/${LIB} |
| 20 | |
| 21 | # /system/lib/libc.so, etc are symlinks to /apex/com.android.lib/lib/bionic/libc.so, etc. |
| 22 | # Add /apex/... path to the permitted paths because linker uses realpath(3) |
| 23 | # to check the accessibility of the lib. We could add this to search.paths |
| 24 | # instead but that makes the resolution of bionic libs be dependent on |
| 25 | # the order of /system/lib and /apex/... in search.paths. If /apex/... |
| 26 | # is after /system/lib, then /apex/... is never tried because libc.so |
| 27 | # is always found in /system/lib but fails to pass the accessibility test |
| 28 | # because of its realpath. It's better to not depend on the ordering if |
| 29 | # possible. |
| 30 | namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |
| 31 | namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |