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/ |
Jiyong Park | c034a43 | 2017-07-20 15:17:35 +0900 | [diff] [blame] | 10 | dir.test = /data/nativetest/ |
| 11 | dir.test = /data/nativetest64/ |
| 12 | dir.test = /data/benchmarktest/ |
| 13 | dir.test = /data/benchmarktest64/ |
Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 14 | |
| 15 | [system] |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 16 | additional.namespaces = sphal,vndk,rs |
Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 17 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 18 | ############################################################################### |
| 19 | # "default" namespace |
| 20 | # |
| 21 | # Framework-side code runs in this namespace. Anything from /vendor partition |
| 22 | # can't be loaded in this namespace. |
| 23 | ############################################################################### |
| 24 | namespace.default.isolated = false |
| 25 | namespace.default.search.paths = /system/${LIB}:/vendor/${LIB} |
| 26 | namespace.default.permitted.paths = /system/${LIB}:/vendor/${LIB} |
Dimitry Ivanov | ee34aec | 2017-02-15 14:11:18 -0800 | [diff] [blame] | 27 | |
Andreas Gampe | c7c2d7b | 2017-04-21 17:18:45 -0700 | [diff] [blame] | 28 | namespace.default.asan.search.paths = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB} |
| 29 | namespace.default.asan.permitted.paths = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB} |
| 30 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 31 | # TODO(b/37013858): remove all dependencies to /vendor/lib from system processes |
| 32 | # When this is done, comment out following three lines and remove the three |
| 33 | # lines above |
| 34 | #namespace.default.isolated = true |
| 35 | #namespace.default.search.paths = /system/${LIB} |
| 36 | #namespace.default.permitted.paths = /system/${LIB} |
Andreas Gampe | c7c2d7b | 2017-04-21 17:18:45 -0700 | [diff] [blame] | 37 | # |
| 38 | #namespace.default.asan.search.paths = /data/asan/system/${LIB}:/system/${LIB} |
| 39 | #namespace.default.asan.permitted.paths = /data/asan/system/${LIB}:/system/${LIB} |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 40 | |
| 41 | ############################################################################### |
| 42 | # "sphal" namespace |
| 43 | # |
| 44 | # SP-HAL(Sameprocess-HAL)s are the only vendor libraries that are allowed to be |
| 45 | # loaded inside system processes. libEGL_<chipset>.so, libGLESv2_<chipset>.so, |
| 46 | # android.hardware.graphics.mapper@2.0-impl.so, etc are SP-HALs. |
| 47 | # |
| 48 | # This namespace is exclusivly for SP-HALs. When the framework tries to dynami- |
| 49 | # cally load SP-HALs, android_dlopen_ext() is used to explicitly specifying |
| 50 | # that they should be searched and loaded from this namespace. |
| 51 | # |
| 52 | # Note that there is no link from the default namespace to this namespace. |
| 53 | ############################################################################### |
| 54 | namespace.sphal.isolated = true |
| 55 | namespace.sphal.visible = true |
| 56 | namespace.sphal.search.paths = /vendor/${LIB}/egl:/vendor/${LIB}/hw:/vendor/${LIB} |
Jiyong Park | b5c0fc3 | 2017-08-04 16:18:03 +0900 | [diff] [blame] | 57 | namespace.sphal.permitted.paths = /vendor/${LIB}:/system/${LIB}/vndk-sp/hw |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 58 | |
Andreas Gampe | c7c2d7b | 2017-04-21 17:18:45 -0700 | [diff] [blame] | 59 | namespace.sphal.asan.search.paths = /data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl:/data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}:/vendor/${LIB} |
| 60 | namespace.sphal.asan.permitted.paths = /data/asan/vendor/${LIB}:/vendor/${LIB} |
| 61 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 62 | # Once in this namespace, access to libraries in /system/lib is restricted. Only |
| 63 | # libs listed here can be used. |
Jiyong Park | bfa03ee | 2017-04-21 15:16:12 +0900 | [diff] [blame] | 64 | namespace.sphal.links = default,vndk,rs |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 65 | |
| 66 | # WARNING: only NDK libs can be listed here. |
Jiyong Park | e58fa1b | 2017-08-31 22:11:35 +0900 | [diff] [blame^] | 67 | namespace.sphal.link.default.shared_libs = libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libGLESv1_CM.so:libGLESv2.so:libvndksupport.so:libz.so |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 68 | |
| 69 | # WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line. |
Jiyong Park | e58fa1b | 2017-08-31 22:11:35 +0900 | [diff] [blame^] | 70 | namespace.sphal.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.memory@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libion.so:libutils.so:libc++.so |
Jiyong Park | bfa03ee | 2017-04-21 15:16:12 +0900 | [diff] [blame] | 71 | |
| 72 | # Renderscript gets separate namespace |
| 73 | namespace.sphal.link.rs.shared_libs = libRS_internal.so |
| 74 | |
| 75 | ############################################################################### |
| 76 | # "rs" namespace |
| 77 | # |
| 78 | # This namespace is exclusively for Renderscript internal libraries. |
| 79 | # This namespace has slightly looser restriction than the vndk namespace because |
| 80 | # of the genuine characteristics of Renderscript; /data is in the permitted path |
| 81 | # to load the compiled *.so file and libmediandk.so can be used here. |
| 82 | ############################################################################### |
| 83 | namespace.rs.isolated = true |
Jiyong Park | 7075bca | 2017-08-16 23:32:54 +0900 | [diff] [blame] | 84 | namespace.rs.visible = true |
Jiyong Park | eb9694a | 2017-05-09 15:07:43 +0900 | [diff] [blame] | 85 | namespace.rs.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/vendor/${LIB} |
Jiyong Park | bfa03ee | 2017-04-21 15:16:12 +0900 | [diff] [blame] | 86 | namespace.rs.permitted.paths = /vendor/${LIB}:/data |
| 87 | |
Jiyong Park | eb9694a | 2017-05-09 15:07:43 +0900 | [diff] [blame] | 88 | namespace.rs.asan.search.paths = /data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/vendor/${LIB}:/vendor/${LIB} |
| 89 | namespace.rs.asan.permitted.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}:/data |
| 90 | |
Jiyong Park | bfa03ee | 2017-04-21 15:16:12 +0900 | [diff] [blame] | 91 | namespace.rs.links = default,vndk |
Jiyong Park | e58fa1b | 2017-08-31 22:11:35 +0900 | [diff] [blame^] | 92 | namespace.rs.link.default.shared_libs = libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libGLESv1_CM.so:libGLESv2.so:libmediandk.so:libvndksupport.so:libz.so:libft2.so |
| 93 | namespace.rs.link.vndk.shared_libs = android.hardware.renderscript@1.0.so:android.hardware.graphics.allocator@2.0.so:android.hardware.graphics.mapper@2.0.so:android.hardware.graphics.common@1.0.so:android.hidl.memory@1.0.so:libhwbinder.so:libbase.so:libcutils.so:libhardware.so:libhidlbase.so:libhidlmemory.so:libhidltransport.so:libion.so:libutils.so:libc++.so |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 94 | |
| 95 | ############################################################################### |
| 96 | # "vndk" namespace |
| 97 | # |
| 98 | # This namespace is exclusively for vndk-sp libs. |
| 99 | ############################################################################### |
| 100 | namespace.vndk.isolated = true |
Jiyong Park | eb9694a | 2017-05-09 15:07:43 +0900 | [diff] [blame] | 101 | namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/vendor/${LIB} |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 102 | namespace.vndk.permitted.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl |
| 103 | |
Jiyong Park | eb9694a | 2017-05-09 15:07:43 +0900 | [diff] [blame] | 104 | namespace.vndk.asan.search.paths = /data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/vendor/${LIB}:/vendor/${LIB} |
Andreas Gampe | c7c2d7b | 2017-04-21 17:18:45 -0700 | [diff] [blame] | 105 | namespace.vndk.asan.permitted.paths = /data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl |
| 106 | |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 107 | # When these NDK libs are required inside this namespace, then it is redirected |
| 108 | # to the default namespace. This is possible since their ABI is stable across |
| 109 | # Android releases. |
| 110 | namespace.vndk.links = default |
Jiyong Park | e58fa1b | 2017-08-31 22:11:35 +0900 | [diff] [blame^] | 111 | namespace.vndk.link.default.shared_libs = android.hidl.memory@1.0-impl.so:libc.so:libm.so:libdl.so:libstdc++.so:liblog.so:libnativewindow.so:libEGL.so:libsync.so:libvndksupport.so:libz.so |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 112 | |
Jiyong Park | c034a43 | 2017-07-20 15:17:35 +0900 | [diff] [blame] | 113 | ############################################################################### |
| 114 | # Namespace config for vendor processes. In O, no restriction is enforced for |
| 115 | # them. However, in O-MR1, access to /system/${LIB} will not be allowed to |
| 116 | # the default namespace. 'system' namespace will be added to give limited |
| 117 | # (LL-NDK only) access. |
| 118 | ############################################################################### |
Jiyong Park | 450cff4 | 2017-04-05 14:24:14 +0900 | [diff] [blame] | 119 | [vendor] |
| 120 | namespace.default.isolated = false |
Justin Yun | e373672 | 2017-07-25 14:13:51 +0900 | [diff] [blame] | 121 | namespace.default.search.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl:/vendor/${LIB}:/system/${LIB}/vndk:/vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/system/${LIB} |
Andreas Gampe | c7c2d7b | 2017-04-21 17:18:45 -0700 | [diff] [blame] | 122 | |
Justin Yun | e373672 | 2017-07-25 14:13:51 +0900 | [diff] [blame] | 123 | namespace.default.asan.search.paths = /data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl:/data/asan/vendor/${LIB}:/vendor/${LIB}:/data/asan/system/${LIB}/vndk:/system/${LIB}/vndk:/data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/system/${LIB}:/system/${LIB} |
Jiyong Park | c034a43 | 2017-07-20 15:17:35 +0900 | [diff] [blame] | 124 | |
| 125 | ############################################################################### |
| 126 | # Namespace config for tests. No VNDK restriction is enforced for these tests. |
| 127 | ############################################################################### |
| 128 | [test] |
| 129 | namespace.default.isolated = false |
| 130 | namespace.default.search.paths = /vendor/${LIB}:/vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/system/${LIB} |
| 131 | |
| 132 | namespace.default.asan.search.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}:/data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/data/asan/system/${LIB}:/system/${LIB} |