blob: fbe8b2870f7d2374a251c1287aebd35b577d2f86 [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/
10dir.legacy = /
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080011
12[system]
Jiyong Park450cff42017-04-05 14:24:14 +090013additional.namespaces = sphal,vndk,rs
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080014
Jiyong Park450cff42017-04-05 14:24:14 +090015###############################################################################
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###############################################################################
21namespace.default.isolated = false
22namespace.default.search.paths = /system/${LIB}:/vendor/${LIB}
23namespace.default.permitted.paths = /system/${LIB}:/vendor/${LIB}
Dimitry Ivanovee34aec2017-02-15 14:11:18 -080024
Jiyong Park450cff42017-04-05 14:24:14 +090025# 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###############################################################################
45namespace.sphal.isolated = true
46namespace.sphal.visible = true
47namespace.sphal.search.paths = /vendor/${LIB}/egl:/vendor/${LIB}/hw:/vendor/${LIB}
48namespace.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.
52namespace.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
59namespace.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.
62namespace.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###############################################################################
69namespace.vndk.isolated = true
70namespace.vndk.search.paths = /vendor/${LIB}/vndk-sp:/vendor/${LIB}
71namespace.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.
76namespace.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
83namespace.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]
87namespace.default.isolated = false
88namespace.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]
94namespace.default.isolated = false
95namespace.default.search.path = /system/${LIB}:/vendor/${LIB}
96namespace.default.asan.search.path = /data/asan/system/${LIB}:/system/${LIB}:/data/asan/vendor/${LIB}:/vendor/${LIB}