blob: ca6aafe41175f9d5bae96684f356acaa094c5986 [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
9dir.legacy = /vendor
Alin Jerpeleafa7958e2017-09-27 09:40:59 +020010dir.legacy = /odm
Jiyong Park450cff42017-04-05 14:24:14 +090011dir.legacy = /sbin
12
Jiyong Park955029a2018-03-20 01:12:31 +090013# Except for /postinstall, where only /system is searched
14dir.postinstall = /postinstall
15
Jiyong Park450cff42017-04-05 14:24:14 +090016[legacy]
17namespace.default.isolated = false
Jiyong Park2498e1b2017-12-12 22:11:47 +090018
19namespace.default.search.paths = /system/${LIB}
20namespace.default.search.paths += /vendor/${LIB}
21namespace.default.search.paths += /odm/${LIB}
22
23namespace.default.asan.search.paths = /data/asan/system/${LIB}
24namespace.default.asan.search.paths += /system/${LIB}
25namespace.default.asan.search.paths += /data/asan/odm/${LIB}
26namespace.default.asan.search.paths += /odm/${LIB}
27namespace.default.asan.search.paths += /data/asan/vendor/${LIB}
28namespace.default.asan.search.paths += /vendor/${LIB}
Jiyong Park955029a2018-03-20 01:12:31 +090029
30###############################################################################
31# Namespace config for binaries under /postinstall.
32# Only one default namespace is defined and it has no directories other than
33# /system/lib in the search paths. This is because linker calls realpath on the
34# search paths and this causes selinux denial if the paths (/vendor, /odm) are
35# not allowed to the poinstall binaries. There is no reason to allow the
36# binaries to access the paths.
37###############################################################################
38[postinstall]
39namespace.default.isolated = false
40namespace.default.search.paths = /system/${LIB}