blob: 461184a2dec1e3d1bb941eea57ea4efe57c13163 [file] [log] [blame]
Jiyong Park450cff42017-04-05 14:24:14 +09001# Copyright (C) 2017 The Android Open Source Project
2#
3# Bionic loader config file.
4# This gives the exactly the same namespace setup in pre-O.
5#
6
7# All binaries gets the same configuration 'legacy'
8dir.legacy = /system
changho.shin715b1aa2018-11-28 15:15:16 +09009dir.legacy = /product
Jiyong Park450cff42017-04-05 14:24:14 +090010dir.legacy = /vendor
Alin Jerpeleafa7958e2017-09-27 09:40:59 +020011dir.legacy = /odm
Jiyong Park450cff42017-04-05 14:24:14 +090012dir.legacy = /sbin
13
changho.shin715b1aa2018-11-28 15:15:16 +090014# Except for /postinstall, where only /system and /product are searched
Jiyong Parkd7e6cb22018-03-20 01:12:31 +090015dir.postinstall = /postinstall
16
Jiyong Park450cff42017-04-05 14:24:14 +090017[legacy]
18namespace.default.isolated = false
Jiyong Park2498e1b2017-12-12 22:11:47 +090019
20namespace.default.search.paths = /system/${LIB}
changho.shin715b1aa2018-11-28 15:15:16 +090021namespace.default.search.paths += /product/${LIB}
Jiyong Park2498e1b2017-12-12 22:11:47 +090022namespace.default.search.paths += /vendor/${LIB}
23namespace.default.search.paths += /odm/${LIB}
24
25namespace.default.asan.search.paths = /data/asan/system/${LIB}
26namespace.default.asan.search.paths += /system/${LIB}
changho.shin715b1aa2018-11-28 15:15:16 +090027namespace.default.asan.search.paths += /data/asan/product/${LIB}
28namespace.default.asan.search.paths += /product/${LIB}
Jiyong Park2498e1b2017-12-12 22:11:47 +090029namespace.default.asan.search.paths += /data/asan/vendor/${LIB}
30namespace.default.asan.search.paths += /vendor/${LIB}
changho.shin715b1aa2018-11-28 15:15:16 +090031namespace.default.asan.search.paths += /data/asan/odm/${LIB}
32namespace.default.asan.search.paths += /odm/${LIB}
Jiyong Parkd7e6cb22018-03-20 01:12:31 +090033
34###############################################################################
35# Namespace config for binaries under /postinstall.
36# Only one default namespace is defined and it has no directories other than
changho.shin715b1aa2018-11-28 15:15:16 +090037# /system/lib and /product/lib in the search paths. This is because linker
38# calls realpath on the search paths and this causes selinux denial if the
39# paths (/vendor, /odm) are not allowed to the poinstall binaries.
40# There is no reason to allow the binaries to access the paths.
Jiyong Parkd7e6cb22018-03-20 01:12:31 +090041###############################################################################
42[postinstall]
43namespace.default.isolated = false
changho.shin715b1aa2018-11-28 15:15:16 +090044namespace.default.search.paths = /system/${LIB}
45namespace.default.search.paths += /product/${LIB}