Josh Gao | 594f70f | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 1 | # Copyright (C) 2019 The Android Open Source Project |
| 2 | # |
| 3 | # Bionic loader config file for the adbd APEX. |
| 4 | |
| 5 | dir.adbd = /apex/com.android.adbd/bin/ |
| 6 | |
| 7 | [adbd] |
Kiyoung Kim | 0513f0e | 2020-01-03 10:33:07 +0900 | [diff] [blame] | 8 | additional.namespaces = platform,art |
Josh Gao | 594f70f | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 9 | |
| 10 | namespace.default.isolated = true |
Kiyoung Kim | 0513f0e | 2020-01-03 10:33:07 +0900 | [diff] [blame] | 11 | namespace.default.search.paths = /apex/com.android.adbd/${LIB} |
| 12 | namespace.default.asan.search.paths = /apex/com.android.adbd/${LIB} |
| 13 | namespace.default.links = art,platform |
Josh Gao | 594f70f | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 14 | namespace.default.link.art.shared_libs = libadbconnection_server.so |
Kiyoung Kim | 0513f0e | 2020-01-03 10:33:07 +0900 | [diff] [blame] | 15 | namespace.default.link.platform.shared_libs = libc.so:libdl.so:libm.so:libclang_rt.hwasan-aarch64-android.so |
Josh Gao | 594f70f | 2019-08-15 14:05:12 -0700 | [diff] [blame] | 16 | |
| 17 | ############################################################################### |
| 18 | # "art" APEX namespace: used for libadbdconnection_server |
| 19 | ############################################################################### |
| 20 | namespace.art.isolated = true |
| 21 | namespace.art.search.paths = /apex/com.android.art/${LIB} |
| 22 | namespace.art.asan.search.paths = /apex/com.android.art/${LIB} |
| 23 | namespace.art.links = platform |
| 24 | namespace.art.link.platform.allow_all_shared_libs = true |
| 25 | |
| 26 | ############################################################################### |
| 27 | # "platform" namespace: used for NDK libraries, and libadbd_auth |
| 28 | ############################################################################### |
| 29 | namespace.platform.isolated = true |
| 30 | namespace.platform.search.paths = /system/${LIB} |
| 31 | namespace.platform.asan.search.paths = /data/asan/system/${LIB} |
| 32 | |
| 33 | # /system/lib/libc.so, etc are symlinks to |
| 34 | # /apex/com.android.runtime/lib/bionic/libc.so, etc. Add the path to the |
| 35 | # permitted paths because linker uses realpath(3) to check the accessibility |
| 36 | # of the lib. We could add this to search.paths instead but that makes the |
| 37 | # resolution of bionic libs be dependent on the order of /system/lib and |
| 38 | # /apex/.../lib/bionic in search.paths. If the latter is after the former, |
| 39 | # then the latter is never tried because libc.so is always found in |
| 40 | # /system/lib but fails to pass the accessibility test because of its realpath. |
| 41 | # It's better to not depend on the ordering if possible. |
| 42 | namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |
| 43 | namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic |