blob: 8aa3369302c777632ed87b782a69db782a967ce5 [file] [log] [blame]
Dimitry Ivanovee34aec2017-02-15 14:11:18 -08001# Copyright (C) 2017 The Android Open Source Project
2#
3# Bionic loader config file.
4#
5
Jiyong Park450cff42017-04-05 14:24:14 +09006# Don't change the order here.
7dir.system = /system/bin/
8dir.system = /system/xbin/
9dir.vendor = /vendor/bin/
Jiyong Parka2935e02017-09-29 05:04:00 +090010dir.vendor = /data/nativetest/vendor
11dir.vendor = /data/nativetest64/vendor
12dir.vendor = /data/benchmarktest/vendor
13dir.vendor = /data/benchmarktest64/vendor
14dir.system = /data/nativetest
15dir.system = /data/nativetest64
16dir.system = /data/benchmarktest
17dir.system = /data/benchmarktest64
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080018
19[system]
Jiyong Park450cff42017-04-05 14:24:14 +090020additional.namespaces = sphal,vndk,rs
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080021
Jiyong Park450cff42017-04-05 14:24:14 +090022###############################################################################
23# "default" namespace
24#
25# Framework-side code runs in this namespace. Anything from /vendor partition
26# can't be loaded in this namespace.
27###############################################################################
28namespace.default.isolated = false
29namespace.default.search.paths = /system/${LIB}:/vendor/${LIB}
30namespace.default.permitted.paths = /system/${LIB}:/vendor/${LIB}
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080031
Andreas Gampec7c2d7b2017-04-21 17:18:45 -070032namespace.default.asan.search.paths = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB}
33namespace.default.asan.permitted.paths = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB}
34
Jiyong Park450cff42017-04-05 14:24:14 +090035# TODO(b/37013858): remove all dependencies to /vendor/lib from system processes
36# When this is done, comment out following three lines and remove the three
37# lines above
38#namespace.default.isolated = true
39#namespace.default.search.paths = /system/${LIB}
40#namespace.default.permitted.paths = /system/${LIB}
Andreas Gampec7c2d7b2017-04-21 17:18:45 -070041#
42#namespace.default.asan.search.paths = /data/asan/system/${LIB}:/system/${LIB}
43#namespace.default.asan.permitted.paths = /data/asan/system/${LIB}:/system/${LIB}
Jiyong Park450cff42017-04-05 14:24:14 +090044
45###############################################################################
46# "sphal" namespace
47#
48# SP-HAL(Sameprocess-HAL)s are the only vendor libraries that are allowed to be
49# loaded inside system processes. libEGL_<chipset>.so, libGLESv2_<chipset>.so,
50# android.hardware.graphics.mapper@2.0-impl.so, etc are SP-HALs.
51#
52# This namespace is exclusivly for SP-HALs. When the framework tries to dynami-
53# cally load SP-HALs, android_dlopen_ext() is used to explicitly specifying
54# that they should be searched and loaded from this namespace.
55#
56# Note that there is no link from the default namespace to this namespace.
57###############################################################################
58namespace.sphal.isolated = true
59namespace.sphal.visible = true
60namespace.sphal.search.paths = /vendor/${LIB}/egl:/vendor/${LIB}/hw:/vendor/${LIB}
Jiyong Parkb5c0fc32017-08-04 16:18:03 +090061namespace.sphal.permitted.paths = /vendor/${LIB}:/system/${LIB}/vndk-sp/hw
Jiyong Park450cff42017-04-05 14:24:14 +090062
Andreas Gampec7c2d7b2017-04-21 17:18:45 -070063namespace.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}
64namespace.sphal.asan.permitted.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}
65
Jiyong Park450cff42017-04-05 14:24:14 +090066# Once in this namespace, access to libraries in /system/lib is restricted. Only
67# libs listed here can be used.
Jiyong Parkbfa03ee2017-04-21 15:16:12 +090068namespace.sphal.links = default,vndk,rs
Jiyong Park450cff42017-04-05 14:24:14 +090069
70# WARNING: only NDK libs can be listed here.
Jiyong Parke58fa1b2017-08-31 22:11:35 +090071namespace.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 Park450cff42017-04-05 14:24:14 +090072
73# WARNING: only VNDK-SP libs can be listed here. DO NOT EDIT this line.
Jiyong Parke58fa1b2017-08-31 22:11:35 +090074namespace.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 Parkbfa03ee2017-04-21 15:16:12 +090075
76# Renderscript gets separate namespace
77namespace.sphal.link.rs.shared_libs = libRS_internal.so
78
79###############################################################################
80# "rs" namespace
81#
82# This namespace is exclusively for Renderscript internal libraries.
83# This namespace has slightly looser restriction than the vndk namespace because
84# of the genuine characteristics of Renderscript; /data is in the permitted path
85# to load the compiled *.so file and libmediandk.so can be used here.
86###############################################################################
87namespace.rs.isolated = true
Jiyong Park7075bca2017-08-16 23:32:54 +090088namespace.rs.visible = true
Jiyong Parkeb9694a2017-05-09 15:07:43 +090089namespace.rs.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp:/vendor/${LIB}
Jiyong Parkbfa03ee2017-04-21 15:16:12 +090090namespace.rs.permitted.paths = /vendor/${LIB}:/data
91
Jiyong Parkeb9694a2017-05-09 15:07:43 +090092namespace.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}
93namespace.rs.asan.permitted.paths = /data/asan/vendor/${LIB}:/vendor/${LIB}:/data
94
Jiyong Parkbfa03ee2017-04-21 15:16:12 +090095namespace.rs.links = default,vndk
Jiyong Parke58fa1b2017-08-31 22:11:35 +090096namespace.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
97namespace.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 Park450cff42017-04-05 14:24:14 +090098
99###############################################################################
100# "vndk" namespace
101#
102# This namespace is exclusively for vndk-sp libs.
103###############################################################################
104namespace.vndk.isolated = true
Jiyong Park6ed1a1c2017-09-26 01:38:22 +0900105namespace.vndk.visible = true
Jiyong Park7f654c32017-05-23 16:24:48 +0900106namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/system/${LIB}/vndk-sp
Jiyong Park450cff42017-04-05 14:24:14 +0900107namespace.vndk.permitted.paths = /vendor/${LIB}/hw:/vendor/${LIB}/egl
108
Jiyong Park7f654c32017-05-23 16:24:48 +0900109namespace.vndk.asan.search.paths = /data/asan/vendor/${LIB}/vndk-sp:/vendor/${LIB}/vndk-sp:/data/asan/system/${LIB}/vndk-sp:/system/${LIB}/vndk-sp
Andreas Gampec7c2d7b2017-04-21 17:18:45 -0700110namespace.vndk.asan.permitted.paths = /data/asan/vendor/${LIB}/hw:/vendor/${LIB}/hw:/data/asan/vendor/${LIB}/egl:/vendor/${LIB}/egl
111
Jiyong Park450cff42017-04-05 14:24:14 +0900112# When these NDK libs are required inside this namespace, then it is redirected
113# to the default namespace. This is possible since their ABI is stable across
114# Android releases.
115namespace.vndk.links = default
Jiyong Parke58fa1b2017-08-31 22:11:35 +0900116namespace.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 Park450cff42017-04-05 14:24:14 +0900117
Jiyong Parkc034a432017-07-20 15:17:35 +0900118###############################################################################
119# Namespace config for vendor processes. In O, no restriction is enforced for
120# them. However, in O-MR1, access to /system/${LIB} will not be allowed to
121# the default namespace. 'system' namespace will be added to give limited
122# (LL-NDK only) access.
123###############################################################################
Jiyong Park450cff42017-04-05 14:24:14 +0900124[vendor]
125namespace.default.isolated = false
Justin Yune3736722017-07-25 14:13:51 +0900126namespace.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 Gampec7c2d7b2017-04-21 17:18:45 -0700127
Justin Yune3736722017-07-25 14:13:51 +0900128namespace.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}