Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Bionic loader config file. |
| 4 | # |
| 5 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame^] | 6 | # Don't change the order here. |
| 7 | dir.system = /system/bin/ |
| 8 | dir.system = /system/xbin/ |
| 9 | dir.vendor = /vendor/bin/ |
| 10 | dir.legacy = / |
Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 11 | |
| 12 | [system] |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame^] | 13 | additional.namespaces = sphal,vndk,rs |
Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 14 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame^] | 15 | ############################################################################### |
| 16 | # "default" namespace |
| 17 | # |
| 18 | # Framework-side code runs in this namespace. Anything from /vendor partition |
| 19 | # can't be loaded in this namespace. |
| 20 | ############################################################################### |
| 21 | namespace.default.isolated = false |
| 22 | namespace.default.search.paths = /system/${LIB}:/vendor/${LIB} |
| 23 | namespace.default.permitted.paths = /system/${LIB}:/vendor/${LIB} |
Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 24 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame^] | 25 | # TODO(b/37013858): remove all dependencies to /vendor/lib from system processes |
| 26 | # When this is done, comment out following three lines and remove the three |
| 27 | # lines above |
| 28 | #namespace.default.isolated = true |
| 29 | #namespace.default.search.paths = /system/${LIB} |
| 30 | #namespace.default.permitted.paths = /system/${LIB} |
| 31 | |
| 32 | ############################################################################### |
| 33 | # "sphal" namespace |
| 34 | # |
| 35 | # SP-HAL(Sameprocess-HAL)s are the only vendor libraries that are allowed to be |
| 36 | # loaded inside system processes. libEGL_<chipset>.so, libGLESv2_<chipset>.so, |
| 37 | # android.hardware.graphics.mapper@2.0-impl.so, etc are SP-HALs. |
| 38 | # |
| 39 | # This namespace is exclusivly for SP-HALs. When the framework tries to dynami- |
| 40 | # cally load SP-HALs, android_dlopen_ext() is used to explicitly specifying |
| 41 | # that they should be searched and loaded from this namespace. |
| 42 | # |
| 43 | # Note that there is no link from the default namespace to this namespace. |
| 44 | ############################################################################### |
| 45 | namespace.sphal.isolated = true |
| 46 | namespace.sphal.visible = true |
| 47 | namespace.sphal.search.paths = /vendor/${LIB}/egl:/vendor/${LIB}/hw:/vendor/${LIB} |
| 48 | namespace.sphal.permitted.paths = /vendor/${LIB} |
| 49 | |
| 50 | # Once in this namespace, access to libraries in /system/lib is restricted. Only |
| 51 | # libs listed here can be used. |
| 52 | namespace.sphal.links = default,vndk |
| 53 | |
| 54 | # WARNING: only NDK libs can be listed here. |
| 55 | # However, this is commented out because some SP-HALs (gralloc.msm8996.so, etc) |
| 56 | # are currently using some non-stable libs such as libui.so. We will get back |
| 57 | # to this list once the dependencies are fixed. |
| 58 | #namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libsync.so |
| 59 | namespace.sphal.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libui.so:libbacktrace.so:libGLESv1_CM.so:libGLESv2.so |
| 60 | |
| 61 | # WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line. |
| 62 | namespace.sphal.link.vndk.shared_libs = android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.base@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidltransport.so:libutils.so:libc++.so |
| 63 | |
| 64 | ############################################################################### |
| 65 | # "vndk" namespace |
| 66 | # |
| 67 | # This namespace is exclusively for vndk-sp libs. |
| 68 | ############################################################################### |
| 69 | namespace.vndk.isolated = true |
| 70 | namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/vendor/${LIB} |
| 71 | namespace.vndk.permitted.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl |
| 72 | |
| 73 | # When these NDK libs are required inside this namespace, then it is redirected |
| 74 | # to the default namespace. This is possible since their ABI is stable across |
| 75 | # Android releases. |
| 76 | namespace.vndk.links = default |
| 77 | |
| 78 | # WARNING: only NDK libs can be listed here. |
| 79 | # However, this is commented out because some SP-HALs (gralloc.msm8996.so, etc) |
| 80 | # are currently using some non-stable libs such as libui.so. We will get back |
| 81 | # to this list once the dependencies are fixed. |
| 82 | #namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libsync.so |
| 83 | namespace.vndk.link.default.shared_libs = libc.so:libz.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libui.so:libbacktrace.so |
| 84 | |
| 85 | |
| 86 | [vendor] |
| 87 | namespace.default.isolated = false |
| 88 | namespace.default.search.paths = /vendor/${LIB}:/vendor/${LIB}/vndk-sp:/system/${LIB} |
| 89 | |
| 90 | # If a binary does not belong to any of the sections above, it falls back to |
| 91 | # this section, which is identical to the namespace configuration setup |
| 92 | # in pre-O. |
| 93 | [legacy] |
| 94 | namespace.default.isolated = false |
| 95 | namespace.default.search.path = /system/${LIB}:/vendor/${LIB} |
| 96 | namespace.default.asan.search.path = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB} |