blob: b4470685f4fc43b4e5f77b6a7ad1d1fc0dad72ae [file] [log] [blame]
Anton Hanssona82f1612019-11-28 17:15:11 +00001# Copyright (C) 2019 The Android Open Source Project
2#
3# Bionic loader config file for the sdkext apex.
4
5dir.sdkext = /apex/com.android.sdkext/bin/
6
7[sdkext]
8additional.namespaces = platform
9
10namespace.default.isolated = true
11namespace.default.links = platform
12namespace.default.link.platform.allow_all_shared_libs = true
13
14###############################################################################
15# "platform" namespace: used for NDK libraries
16###############################################################################
17namespace.platform.isolated = true
18namespace.platform.search.paths = /system/${LIB}
19namespace.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.
30namespace.platform.permitted.paths = /apex/com.android.runtime/${LIB}/bionic
31namespace.platform.asan.permitted.paths = /apex/com.android.runtime/${LIB}/bionic