Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Bionic loader config file. |
| 4 | # |
| 5 | |
| 6 | # Don't change the order here. The first pattern that matches with the |
Steven Moreland | ab338c1 | 2017-11-28 12:41:56 -0800 | [diff] [blame] | 7 | # absolute path of an executable is selected. |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 8 | dir.system = /system/bin/ |
| 9 | dir.system = /system/xbin/ |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 10 | dir.system = /%PRODUCT%/bin/ |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 11 | |
| 12 | dir.vendor = /odm/bin/ |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 13 | dir.vendor = /vendor/bin/ |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 14 | dir.vendor = /data/nativetest/odm |
| 15 | dir.vendor = /data/nativetest64/odm |
| 16 | dir.vendor = /data/benchmarktest/odm |
| 17 | dir.vendor = /data/benchmarktest64/odm |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 18 | dir.vendor = /data/nativetest/vendor |
| 19 | dir.vendor = /data/nativetest64/vendor |
| 20 | dir.vendor = /data/benchmarktest/vendor |
| 21 | dir.vendor = /data/benchmarktest64/vendor |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 22 | |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 23 | dir.system = /data/nativetest |
| 24 | dir.system = /data/nativetest64 |
| 25 | dir.system = /data/benchmarktest |
| 26 | dir.system = /data/benchmarktest64 |
| 27 | |
Jiyong Park | d7e6cb2 | 2018-03-20 01:12:31 +0900 | [diff] [blame] | 28 | dir.postinstall = /postinstall |
| 29 | |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 30 | [system] |
Nicolas Geoffray | 890e3bf | 2019-01-22 09:11:57 +0000 | [diff] [blame] | 31 | additional.namespaces = runtime,conscrypt,media,sphal,vndk,rs |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 32 | |
| 33 | ############################################################################### |
| 34 | # "default" namespace |
| 35 | # |
Jiyong Park | 55f05d7 | 2017-08-28 14:42:49 +0900 | [diff] [blame] | 36 | # Framework-side code runs in this namespace. Libs from /vendor partition |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 37 | # can't be loaded in this namespace. |
| 38 | ############################################################################### |
Jiyong Park | 55f05d7 | 2017-08-28 14:42:49 +0900 | [diff] [blame] | 39 | namespace.default.isolated = true |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 40 | |
Roland Levillain | 9b79db5 | 2018-12-11 10:20:33 +0000 | [diff] [blame] | 41 | namespace.default.search.paths = /system/${LIB} |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 42 | namespace.default.search.paths += /%PRODUCT%/${LIB} |
Dario Freni | ad58bf9 | 2018-08-17 00:20:11 +0100 | [diff] [blame] | 43 | namespace.default.search.paths += /%PRODUCT_SERVICES%/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 44 | |
| 45 | # We can't have entire /system/${LIB} as permitted paths because doing so |
| 46 | # makes it possible to load libs in /system/${LIB}/vndk* directories by |
| 47 | # their absolute paths (e.g. dlopen("/system/lib/vndk/libbase.so");). |
| 48 | # VNDK libs are built with previous versions of Android and thus must not be |
| 49 | # loaded into this namespace where libs built with the current version of |
| 50 | # Android are loaded. Mixing the two types of libs in the same namespace can |
| 51 | # cause unexpected problem. |
| 52 | namespace.default.permitted.paths = /system/${LIB}/drm |
| 53 | namespace.default.permitted.paths += /system/${LIB}/extractors |
| 54 | namespace.default.permitted.paths += /system/${LIB}/hw |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 55 | namespace.default.permitted.paths += /%PRODUCT%/${LIB} |
Dario Freni | ad58bf9 | 2018-08-17 00:20:11 +0100 | [diff] [blame] | 56 | namespace.default.permitted.paths += /%PRODUCT_SERVICES%/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 57 | # These are where odex files are located. libart has to be able to dlopen the files |
| 58 | namespace.default.permitted.paths += /system/framework |
| 59 | namespace.default.permitted.paths += /system/app |
| 60 | namespace.default.permitted.paths += /system/priv-app |
| 61 | namespace.default.permitted.paths += /vendor/framework |
| 62 | namespace.default.permitted.paths += /vendor/app |
| 63 | namespace.default.permitted.paths += /vendor/priv-app |
Bowgo Tsai | 39476ff | 2018-03-14 16:19:03 +0800 | [diff] [blame] | 64 | namespace.default.permitted.paths += /odm/framework |
| 65 | namespace.default.permitted.paths += /odm/app |
| 66 | namespace.default.permitted.paths += /odm/priv-app |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 67 | namespace.default.permitted.paths += /oem/app |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 68 | namespace.default.permitted.paths += /%PRODUCT%/framework |
| 69 | namespace.default.permitted.paths += /%PRODUCT%/app |
| 70 | namespace.default.permitted.paths += /%PRODUCT%/priv-app |
Dario Freni | ad58bf9 | 2018-08-17 00:20:11 +0100 | [diff] [blame] | 71 | namespace.default.permitted.paths += /%PRODUCT_SERVICES%/framework |
| 72 | namespace.default.permitted.paths += /%PRODUCT_SERVICES%/app |
| 73 | namespace.default.permitted.paths += /%PRODUCT_SERVICES%/priv-app |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 74 | namespace.default.permitted.paths += /data |
| 75 | namespace.default.permitted.paths += /mnt/expand |
Lorenzo Colitti | 472c900 | 2018-12-19 16:52:06 +0900 | [diff] [blame] | 76 | namespace.default.permitted.paths += /apex/com.android.resolv/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 77 | |
| 78 | namespace.default.asan.search.paths = /data/asan/system/${LIB} |
| 79 | namespace.default.asan.search.paths += /system/${LIB} |
Inseob Kim | 67cb056 | 2018-05-04 11:39:12 +0900 | [diff] [blame] | 80 | namespace.default.asan.search.paths += /data/asan/product/${LIB} |
Anton Hansson | 0244428 | 2018-09-19 00:39:39 +0100 | [diff] [blame] | 81 | namespace.default.asan.search.paths += /%PRODUCT%/${LIB} |
Dario Freni | ab5583b | 2018-08-17 01:01:25 +0100 | [diff] [blame] | 82 | namespace.default.asan.search.paths += /data/asan/product_services/${LIB} |
Anton Hansson | 0244428 | 2018-09-19 00:39:39 +0100 | [diff] [blame] | 83 | namespace.default.asan.search.paths += /%PRODUCT_SERVICES%/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 84 | |
| 85 | namespace.default.asan.permitted.paths = /data |
| 86 | namespace.default.asan.permitted.paths += /system/${LIB}/drm |
| 87 | namespace.default.asan.permitted.paths += /system/${LIB}/extractors |
| 88 | namespace.default.asan.permitted.paths += /system/${LIB}/hw |
| 89 | namespace.default.asan.permitted.paths += /system/framework |
| 90 | namespace.default.asan.permitted.paths += /system/app |
| 91 | namespace.default.asan.permitted.paths += /system/priv-app |
| 92 | namespace.default.asan.permitted.paths += /vendor/framework |
| 93 | namespace.default.asan.permitted.paths += /vendor/app |
| 94 | namespace.default.asan.permitted.paths += /vendor/priv-app |
Bowgo Tsai | 39476ff | 2018-03-14 16:19:03 +0800 | [diff] [blame] | 95 | namespace.default.asan.permitted.paths += /odm/framework |
| 96 | namespace.default.asan.permitted.paths += /odm/app |
| 97 | namespace.default.asan.permitted.paths += /odm/priv-app |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 98 | namespace.default.asan.permitted.paths += /oem/app |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 99 | namespace.default.asan.permitted.paths += /%PRODUCT%/${LIB} |
| 100 | namespace.default.asan.permitted.paths += /%PRODUCT%/framework |
| 101 | namespace.default.asan.permitted.paths += /%PRODUCT%/app |
| 102 | namespace.default.asan.permitted.paths += /%PRODUCT%/priv-app |
Dario Freni | ad58bf9 | 2018-08-17 00:20:11 +0100 | [diff] [blame] | 103 | namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/${LIB} |
| 104 | namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/framework |
| 105 | namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/app |
| 106 | namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/priv-app |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 107 | namespace.default.asan.permitted.paths += /mnt/expand |
Ken Chen | 30200f1 | 2018-12-28 17:17:04 +0800 | [diff] [blame] | 108 | namespace.default.asan.permitted.paths += /apex/com.android.resolv/${LIB} |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 109 | |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 110 | # Keep in sync with ld.config.txt in the com.android.runtime APEX. |
| 111 | namespace.default.links = runtime |
Martin Stjernholm | 1fc8a55 | 2019-01-22 14:32:46 +0000 | [diff] [blame] | 112 | # Visible because some libraries are dlopen'ed, e.g. libopenjdk is dlopen'ed by |
| 113 | # libart. |
| 114 | namespace.default.visible = true |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 115 | namespace.default.link.runtime.shared_libs = libart.so:libartd.so |
Martin Stjernholm | c02464c | 2019-01-17 21:26:48 +0000 | [diff] [blame] | 116 | namespace.default.link.runtime.shared_libs += libdexfile_external.so |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 117 | namespace.default.link.runtime.shared_libs += libnativebridge.so |
| 118 | namespace.default.link.runtime.shared_libs += libnativehelper.so |
| 119 | namespace.default.link.runtime.shared_libs += libnativeloader.so |
| 120 | |
| 121 | ############################################################################### |
| 122 | # "runtime" APEX namespace |
| 123 | # |
| 124 | # This namespace exposes externally accessible libraries from the Runtime APEX. |
| 125 | ############################################################################### |
| 126 | namespace.runtime.isolated = true |
| 127 | |
| 128 | # Keep in sync with ld.config.txt in the com.android.runtime APEX. |
| 129 | namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} |
Jiyong Park | 59e355c | 2019-01-24 15:08:06 +0900 | [diff] [blame^] | 130 | namespace.runtime.asan.search.paths = /apex/com.android.runtime/${LIB} |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 131 | namespace.runtime.links = default |
| 132 | # TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library |
| 133 | # when it exists. |
| 134 | namespace.runtime.link.default.allow_all_shared_libs = true |
| 135 | |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 136 | ############################################################################### |
Dongwon Kang | c19263b | 2019-01-21 10:47:39 -0800 | [diff] [blame] | 137 | # "media" APEX namespace |
| 138 | # |
| 139 | # This namespace is for libraries within the media APEX. |
| 140 | ############################################################################### |
| 141 | namespace.media.isolated = true |
| 142 | namespace.media.visible = true |
| 143 | |
| 144 | namespace.media.search.paths = /apex/com.android.media/${LIB} |
Jiyong Park | 59e355c | 2019-01-24 15:08:06 +0900 | [diff] [blame^] | 145 | namespace.media.asan.search.paths = /apex/com.android.media/${LIB} |
Dongwon Kang | c19263b | 2019-01-21 10:47:39 -0800 | [diff] [blame] | 146 | |
| 147 | namespace.media.links = default |
| 148 | namespace.media.link.default.shared_libs = %LLNDK_LIBRARIES% |
| 149 | namespace.media.link.default.shared_libs += libandroid.so |
| 150 | namespace.media.link.default.shared_libs += libbinder_ndk.so |
| 151 | namespace.media.link.default.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% |
| 152 | |
| 153 | ############################################################################### |
Nicolas Geoffray | 890e3bf | 2019-01-22 09:11:57 +0000 | [diff] [blame] | 154 | # "conscrypt" APEX namespace |
| 155 | # |
| 156 | # This namespace is for libraries within the conscrypt APEX. |
| 157 | ############################################################################### |
| 158 | namespace.conscrypt.isolated = true |
| 159 | namespace.conscrypt.visible = true |
| 160 | |
Nicolas Geoffray | 88bdf80 | 2019-01-22 14:52:51 +0000 | [diff] [blame] | 161 | # Keep in sync with ld.config.txt in the com.android.runtime APEX. |
Nicolas Geoffray | 890e3bf | 2019-01-22 09:11:57 +0000 | [diff] [blame] | 162 | namespace.conscrypt.search.paths = /apex/com.android.conscrypt/${LIB} |
Jiyong Park | 59e355c | 2019-01-24 15:08:06 +0900 | [diff] [blame^] | 163 | namespace.conscrypt.asan.search.paths = /apex/com.android.conscrypt/${LIB} |
Nicolas Geoffray | 890e3bf | 2019-01-22 09:11:57 +0000 | [diff] [blame] | 164 | namespace.conscrypt.links = default |
Nicolas Geoffray | 88bdf80 | 2019-01-22 14:52:51 +0000 | [diff] [blame] | 165 | namespace.conscrypt.link.default.shared_libs = libc.so |
| 166 | namespace.conscrypt.link.default.shared_libs += libm.so |
| 167 | namespace.conscrypt.link.default.shared_libs += libdl.so |
Nicolas Geoffray | 890e3bf | 2019-01-22 09:11:57 +0000 | [diff] [blame] | 168 | |
| 169 | ############################################################################### |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 170 | # "sphal" namespace |
| 171 | # |
| 172 | # SP-HAL(Sameprocess-HAL)s are the only vendor libraries that are allowed to be |
| 173 | # loaded inside system processes. libEGL_<chipset>.so, libGLESv2_<chipset>.so, |
| 174 | # android.hardware.graphics.mapper@2.0-impl.so, etc are SP-HALs. |
| 175 | # |
| 176 | # This namespace is exclusivly for SP-HALs. When the framework tries to dynami- |
| 177 | # cally load SP-HALs, android_dlopen_ext() is used to explicitly specifying |
| 178 | # that they should be searched and loaded from this namespace. |
| 179 | # |
| 180 | # Note that there is no link from the default namespace to this namespace. |
| 181 | ############################################################################### |
| 182 | namespace.sphal.isolated = true |
| 183 | namespace.sphal.visible = true |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 184 | |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 185 | namespace.sphal.search.paths = /odm/${LIB} |
| 186 | namespace.sphal.search.paths += /vendor/${LIB} |
| 187 | |
| 188 | namespace.sphal.permitted.paths = /odm/${LIB} |
| 189 | namespace.sphal.permitted.paths += /vendor/${LIB} |
| 190 | |
| 191 | namespace.sphal.asan.search.paths = /data/asan/odm/${LIB} |
| 192 | namespace.sphal.asan.search.paths += /odm/${LIB} |
| 193 | namespace.sphal.asan.search.paths += /data/asan/vendor/${LIB} |
| 194 | namespace.sphal.asan.search.paths += /vendor/${LIB} |
| 195 | |
| 196 | namespace.sphal.asan.permitted.paths = /data/asan/odm/${LIB} |
| 197 | namespace.sphal.asan.permitted.paths += /odm/${LIB} |
| 198 | namespace.sphal.asan.permitted.paths += /data/asan/vendor/${LIB} |
| 199 | namespace.sphal.asan.permitted.paths += /vendor/${LIB} |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 200 | |
| 201 | # Once in this namespace, access to libraries in /system/lib is restricted. Only |
| 202 | # libs listed here can be used. |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 203 | namespace.sphal.links = default,vndk,rs |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 204 | |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 205 | namespace.sphal.link.default.shared_libs = %LLNDK_LIBRARIES% |
| 206 | namespace.sphal.link.default.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 207 | |
Jiyong Park | 3679846 | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 208 | namespace.sphal.link.vndk.shared_libs = %VNDK_SAMEPROCESS_LIBRARIES% |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 209 | |
| 210 | # Renderscript gets separate namespace |
| 211 | namespace.sphal.link.rs.shared_libs = libRS_internal.so |
| 212 | |
| 213 | ############################################################################### |
| 214 | # "rs" namespace |
| 215 | # |
| 216 | # This namespace is exclusively for Renderscript internal libraries. |
| 217 | # This namespace has slightly looser restriction than the vndk namespace because |
| 218 | # of the genuine characteristics of Renderscript; /data is in the permitted path |
| 219 | # to load the compiled *.so file and libmediandk.so can be used here. |
| 220 | ############################################################################### |
| 221 | namespace.rs.isolated = true |
| 222 | namespace.rs.visible = true |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 223 | |
Jiyong Park | 60a2966 | 2017-12-13 16:59:21 +0900 | [diff] [blame] | 224 | namespace.rs.search.paths = /odm/${LIB}/vndk-sp |
| 225 | namespace.rs.search.paths += /vendor/${LIB}/vndk-sp |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 226 | namespace.rs.search.paths += /system/${LIB}/vndk-sp%VNDK_VER% |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 227 | namespace.rs.search.paths += /odm/${LIB} |
| 228 | namespace.rs.search.paths += /vendor/${LIB} |
| 229 | |
| 230 | namespace.rs.permitted.paths = /odm/${LIB} |
| 231 | namespace.rs.permitted.paths += /vendor/${LIB} |
| 232 | namespace.rs.permitted.paths += /data |
| 233 | |
Jiyong Park | 60a2966 | 2017-12-13 16:59:21 +0900 | [diff] [blame] | 234 | namespace.rs.asan.search.paths = /data/asan/odm/${LIB}/vndk-sp |
| 235 | namespace.rs.asan.search.paths += /odm/${LIB}/vndk-sp |
| 236 | namespace.rs.asan.search.paths += /data/asan/vendor/${LIB}/vndk-sp |
| 237 | namespace.rs.asan.search.paths += /vendor/${LIB}/vndk-sp |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 238 | namespace.rs.asan.search.paths += /data/asan/system/${LIB}/vndk-sp%VNDK_VER% |
| 239 | namespace.rs.asan.search.paths += /system/${LIB}/vndk-sp%VNDK_VER% |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 240 | namespace.rs.asan.search.paths += /data/asan/odm/${LIB} |
| 241 | namespace.rs.asan.search.paths += /odm/${LIB} |
| 242 | namespace.rs.asan.search.paths += /data/asan/vendor/${LIB} |
| 243 | namespace.rs.asan.search.paths += /vendor/${LIB} |
| 244 | |
| 245 | namespace.rs.asan.permitted.paths = /data/asan/odm/${LIB} |
| 246 | namespace.rs.asan.permitted.paths += /odm/${LIB} |
| 247 | namespace.rs.asan.permitted.paths += /data/asan/vendor/${LIB} |
| 248 | namespace.rs.asan.permitted.paths += /vendor/${LIB} |
| 249 | namespace.rs.asan.permitted.paths += /data |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 250 | |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 251 | namespace.rs.links = default,vndk |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 252 | |
| 253 | namespace.rs.link.default.shared_libs = %LLNDK_LIBRARIES% |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 254 | namespace.rs.link.default.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 255 | # Private LLNDK libs (e.g. libft2.so) are exceptionally allowed to this |
| 256 | # namespace because RS framework libs are using them. |
| 257 | namespace.rs.link.default.shared_libs += %PRIVATE_LLNDK_LIBRARIES% |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 258 | |
Jiyong Park | 3679846 | 2017-08-04 19:08:06 +0900 | [diff] [blame] | 259 | namespace.rs.link.vndk.shared_libs = %VNDK_SAMEPROCESS_LIBRARIES% |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 260 | |
| 261 | ############################################################################### |
| 262 | # "vndk" namespace |
| 263 | # |
| 264 | # This namespace is exclusively for vndk-sp libs. |
| 265 | ############################################################################### |
| 266 | namespace.vndk.isolated = true |
Jiyong Park | a07f305 | 2017-08-22 10:26:10 +0900 | [diff] [blame] | 267 | namespace.vndk.visible = true |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 268 | |
Jiyong Park | 60a2966 | 2017-12-13 16:59:21 +0900 | [diff] [blame] | 269 | namespace.vndk.search.paths = /odm/${LIB}/vndk-sp |
| 270 | namespace.vndk.search.paths += /vendor/${LIB}/vndk-sp |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 271 | namespace.vndk.search.paths += /system/${LIB}/vndk-sp%VNDK_VER% |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 272 | |
| 273 | namespace.vndk.permitted.paths = /odm/${LIB}/hw |
| 274 | namespace.vndk.permitted.paths += /odm/${LIB}/egl |
| 275 | namespace.vndk.permitted.paths += /vendor/${LIB}/hw |
| 276 | namespace.vndk.permitted.paths += /vendor/${LIB}/egl |
| 277 | # This is exceptionally required since android.hidl.memory@1.0-impl.so is here |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 278 | namespace.vndk.permitted.paths += /system/${LIB}/vndk-sp%VNDK_VER%/hw |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 279 | |
Jiyong Park | 60a2966 | 2017-12-13 16:59:21 +0900 | [diff] [blame] | 280 | namespace.vndk.asan.search.paths = /data/asan/odm/${LIB}/vndk-sp |
| 281 | namespace.vndk.asan.search.paths += /odm/${LIB}/vndk-sp |
| 282 | namespace.vndk.asan.search.paths += /data/asan/vendor/${LIB}/vndk-sp |
| 283 | namespace.vndk.asan.search.paths += /vendor/${LIB}/vndk-sp |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 284 | namespace.vndk.asan.search.paths += /data/asan/system/${LIB}/vndk-sp%VNDK_VER% |
| 285 | namespace.vndk.asan.search.paths += /system/${LIB}/vndk-sp%VNDK_VER% |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 286 | |
| 287 | namespace.vndk.asan.permitted.paths = /data/asan/odm/${LIB}/hw |
| 288 | namespace.vndk.asan.permitted.paths += /odm/${LIB}/hw |
| 289 | namespace.vndk.asan.permitted.paths += /data/asan/odm/${LIB}/egl |
| 290 | namespace.vndk.asan.permitted.paths += /odm/${LIB}/egl |
| 291 | namespace.vndk.asan.permitted.paths += /data/asan/vendor/${LIB}/hw |
| 292 | namespace.vndk.asan.permitted.paths += /vendor/${LIB}/hw |
| 293 | namespace.vndk.asan.permitted.paths += /data/asan/vendor/${LIB}/egl |
| 294 | namespace.vndk.asan.permitted.paths += /vendor/${LIB}/egl |
| 295 | |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 296 | namespace.vndk.asan.permitted.paths += /data/asan/system/${LIB}/vndk-sp%VNDK_VER%/hw |
| 297 | namespace.vndk.asan.permitted.paths += /system/${LIB}/vndk-sp%VNDK_VER%/hw |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 298 | |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 299 | # The "vndk" namespace links to "default" namespace for LLNDK libs and links to |
| 300 | # "sphal" namespace for vendor libs. The ordering matters. The "default" |
| 301 | # namespace has higher priority than the "sphal" namespace. |
| 302 | namespace.vndk.links = default,sphal |
Logan Chien | 8667747 | 2018-03-29 14:08:48 +0800 | [diff] [blame] | 303 | |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 304 | # When these NDK libs are required inside this namespace, then it is redirected |
| 305 | # to the default namespace. This is possible since their ABI is stable across |
| 306 | # Android releases. |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 307 | namespace.vndk.link.default.shared_libs = %LLNDK_LIBRARIES% |
| 308 | namespace.vndk.link.default.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 309 | |
Logan Chien | 8667747 | 2018-03-29 14:08:48 +0800 | [diff] [blame] | 310 | # Allow VNDK-SP extensions to use vendor libraries |
| 311 | namespace.vndk.link.sphal.allow_all_shared_libs = true |
| 312 | |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 313 | |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 314 | ############################################################################### |
| 315 | # Namespace config for vendor processes. In O, no restriction is enforced for |
| 316 | # them. However, in O-MR1, access to /system/${LIB} will not be allowed to |
| 317 | # the default namespace. 'system' namespace will be added to give limited |
| 318 | # (LL-NDK only) access. |
| 319 | ############################################################################### |
| 320 | [vendor] |
Martin Stjernholm | c02464c | 2019-01-17 21:26:48 +0000 | [diff] [blame] | 321 | additional.namespaces = runtime,system,vndk |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 322 | |
| 323 | ############################################################################### |
| 324 | # "default" namespace |
| 325 | # |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 326 | # This is the default linker namespace for a vendor process (a process started |
| 327 | # from /vendor/bin/*). The main executable and the libs under /vendor/lib[64] |
| 328 | # are loaded directly into this namespace. However, other libs under the system |
| 329 | # partition (VNDK and LLNDK libraries) are not loaded here but from the |
| 330 | # separate namespace 'system'. The delegation to the system namespace is done |
| 331 | # via the 'namespace.default.link.system.shared_libs' property below. |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 332 | ############################################################################### |
| 333 | namespace.default.isolated = true |
| 334 | namespace.default.visible = true |
| 335 | |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 336 | namespace.default.search.paths = /odm/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 337 | namespace.default.search.paths += /vendor/${LIB} |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 338 | |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 339 | namespace.default.permitted.paths = /odm |
| 340 | namespace.default.permitted.paths += /vendor |
| 341 | |
| 342 | namespace.default.asan.search.paths = /data/asan/odm/${LIB} |
| 343 | namespace.default.asan.search.paths += /odm/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 344 | namespace.default.asan.search.paths += /data/asan/vendor/${LIB} |
| 345 | namespace.default.asan.search.paths += /vendor/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 346 | |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 347 | namespace.default.asan.permitted.paths = /data/asan/odm |
| 348 | namespace.default.asan.permitted.paths += /odm |
| 349 | namespace.default.asan.permitted.paths += /data/asan/vendor |
| 350 | namespace.default.asan.permitted.paths += /vendor |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 351 | |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 352 | namespace.default.links = system,vndk |
Logan Chien | 225b71d | 2017-12-15 22:19:57 +0800 | [diff] [blame] | 353 | namespace.default.link.system.shared_libs = %LLNDK_LIBRARIES% |
| 354 | namespace.default.link.vndk.shared_libs = %VNDK_SAMEPROCESS_LIBRARIES% |
| 355 | namespace.default.link.vndk.shared_libs += %VNDK_CORE_LIBRARIES% |
| 356 | |
| 357 | ############################################################################### |
Martin Stjernholm | c02464c | 2019-01-17 21:26:48 +0000 | [diff] [blame] | 358 | # "runtime" APEX namespace |
| 359 | # |
| 360 | # This namespace exposes externally accessible libraries from the Runtime APEX. |
| 361 | ############################################################################### |
| 362 | namespace.runtime.isolated = true |
| 363 | |
| 364 | # Keep in sync with ld.config.txt in the com.android.runtime APEX. |
| 365 | namespace.runtime.search.paths = /apex/com.android.runtime/${LIB} |
| 366 | namespace.runtime.links = system |
| 367 | # TODO(b/119867084): Restrict to Bionic dlopen dependencies and PALette library |
| 368 | # when it exists. |
| 369 | namespace.runtime.link.system.allow_all_shared_libs = true |
| 370 | |
| 371 | ############################################################################### |
Logan Chien | 225b71d | 2017-12-15 22:19:57 +0800 | [diff] [blame] | 372 | # "vndk" namespace |
| 373 | # |
| 374 | # This namespace is where VNDK and VNDK-SP libraries are loaded for |
| 375 | # a vendor process. |
| 376 | ############################################################################### |
| 377 | namespace.vndk.isolated = false |
| 378 | |
Logan Chien | 91b3fb4 | 2018-01-11 20:00:37 +0800 | [diff] [blame] | 379 | namespace.vndk.search.paths = /odm/${LIB}/vndk |
| 380 | namespace.vndk.search.paths += /odm/${LIB}/vndk-sp |
| 381 | namespace.vndk.search.paths += /vendor/${LIB}/vndk |
| 382 | namespace.vndk.search.paths += /vendor/${LIB}/vndk-sp |
| 383 | namespace.vndk.search.paths += /system/${LIB}/vndk-sp%VNDK_VER% |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 384 | namespace.vndk.search.paths += /system/${LIB}/vndk%VNDK_VER% |
Logan Chien | 225b71d | 2017-12-15 22:19:57 +0800 | [diff] [blame] | 385 | |
Logan Chien | 91b3fb4 | 2018-01-11 20:00:37 +0800 | [diff] [blame] | 386 | namespace.vndk.asan.search.paths = /data/asan/odm/${LIB}/vndk |
| 387 | namespace.vndk.asan.search.paths += /odm/${LIB}/vndk |
| 388 | namespace.vndk.asan.search.paths += /data/asan/odm/${LIB}/vndk-sp |
| 389 | namespace.vndk.asan.search.paths += /odm/${LIB}/vndk-sp |
| 390 | namespace.vndk.asan.search.paths += /data/asan/vendor/${LIB}/vndk |
| 391 | namespace.vndk.asan.search.paths += /vendor/${LIB}/vndk |
| 392 | namespace.vndk.asan.search.paths += /data/asan/vendor/${LIB}/vndk-sp |
| 393 | namespace.vndk.asan.search.paths += /vendor/${LIB}/vndk-sp |
| 394 | namespace.vndk.asan.search.paths += /data/asan/system/${LIB}/vndk-sp%VNDK_VER% |
Justin Yun | cbbf195 | 2018-01-16 11:46:21 +0900 | [diff] [blame] | 395 | namespace.vndk.asan.search.paths += /system/${LIB}/vndk-sp%VNDK_VER% |
| 396 | namespace.vndk.asan.search.paths += /data/asan/system/${LIB}/vndk%VNDK_VER% |
| 397 | namespace.vndk.asan.search.paths += /system/${LIB}/vndk%VNDK_VER% |
Logan Chien | 225b71d | 2017-12-15 22:19:57 +0800 | [diff] [blame] | 398 | |
| 399 | # When these NDK libs are required inside this namespace, then it is redirected |
| 400 | # to the system namespace. This is possible since their ABI is stable across |
| 401 | # Android releases. |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 402 | namespace.vndk.links = system,default |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 403 | |
Logan Chien | 225b71d | 2017-12-15 22:19:57 +0800 | [diff] [blame] | 404 | namespace.vndk.link.system.shared_libs = %LLNDK_LIBRARIES% |
| 405 | namespace.vndk.link.system.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 406 | |
Logan Chien | ea4a2bd | 2018-01-18 12:06:14 +0800 | [diff] [blame] | 407 | namespace.vndk.link.default.allow_all_shared_libs = true |
| 408 | |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 409 | ############################################################################### |
| 410 | # "system" namespace |
| 411 | # |
Jiyong Park | ad7ddd5 | 2017-12-07 09:59:48 +0900 | [diff] [blame] | 412 | # This namespace is where system libs (VNDK and LLNDK libs) are loaded for |
| 413 | # a vendor process. |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 414 | ############################################################################### |
| 415 | namespace.system.isolated = false |
Justin Yun | 24c29f1 | 2017-06-16 18:11:35 +0900 | [diff] [blame] | 416 | |
Roland Levillain | 9b79db5 | 2018-12-11 10:20:33 +0000 | [diff] [blame] | 417 | namespace.system.search.paths = /system/${LIB} |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 418 | namespace.system.search.paths += /%PRODUCT%/${LIB} |
Dario Freni | ad58bf9 | 2018-08-17 00:20:11 +0100 | [diff] [blame] | 419 | namespace.system.search.paths += /%PRODUCT_SERVICES%/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 420 | |
Logan Chien | 225b71d | 2017-12-15 22:19:57 +0800 | [diff] [blame] | 421 | namespace.system.asan.search.paths = /data/asan/system/${LIB} |
Jiyong Park | 2498e1b | 2017-12-12 22:11:47 +0900 | [diff] [blame] | 422 | namespace.system.asan.search.paths += /system/${LIB} |
Inseob Kim | 67cb056 | 2018-05-04 11:39:12 +0900 | [diff] [blame] | 423 | namespace.system.asan.search.paths += /data/asan/product/${LIB} |
Anton Hansson | 0244428 | 2018-09-19 00:39:39 +0100 | [diff] [blame] | 424 | namespace.system.asan.search.paths += /%PRODUCT%/${LIB} |
Anton Hansson | ece0a74 | 2018-09-19 00:51:20 +0100 | [diff] [blame] | 425 | namespace.system.asan.search.paths += /data/asan/product_services/${LIB} |
| 426 | namespace.system.asan.search.paths += /%PRODUCT_SERVICES%/${LIB} |
Jiyong Park | d7e6cb2 | 2018-03-20 01:12:31 +0900 | [diff] [blame] | 427 | |
Martin Stjernholm | c02464c | 2019-01-17 21:26:48 +0000 | [diff] [blame] | 428 | namespace.system.links = runtime |
| 429 | namespace.system.link.runtime.shared_libs = libdexfile_external.so |
| 430 | |
Jiyong Park | d7e6cb2 | 2018-03-20 01:12:31 +0900 | [diff] [blame] | 431 | ############################################################################### |
| 432 | # Namespace config for binaries under /postinstall. |
Jiyong Park | 3fa8415 | 2019-01-03 22:08:40 +0900 | [diff] [blame] | 433 | # Only default namespace is defined and default has no directories |
Martin Stjernholm | e71d91e | 2018-12-19 20:39:09 +0000 | [diff] [blame] | 434 | # other than /system/lib in the search paths. This is because linker calls |
| 435 | # realpath on the search paths and this causes selinux denial if the paths |
| 436 | # (/vendor, /odm) are not allowed to the postinstall binaries. There is no |
| 437 | # reason to allow the binaries to access the paths. |
Jiyong Park | d7e6cb2 | 2018-03-20 01:12:31 +0900 | [diff] [blame] | 438 | ############################################################################### |
| 439 | [postinstall] |
| 440 | namespace.default.isolated = false |
Roland Levillain | 9b79db5 | 2018-12-11 10:20:33 +0000 | [diff] [blame] | 441 | namespace.default.search.paths = /system/${LIB} |
Doheon Lee | cccad0b | 2018-06-19 15:23:21 +0900 | [diff] [blame] | 442 | namespace.default.search.paths += /%PRODUCT%/${LIB} |
Dario Freni | ad58bf9 | 2018-08-17 00:20:11 +0100 | [diff] [blame] | 443 | namespace.default.search.paths += /%PRODUCT_SERVICES%/${LIB} |