• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
10dir.legacy = /odm
11dir.legacy = /sbin
12
13# Except for /postinstall, where only /system is searched
14dir.postinstall = /postinstall
15
16[legacy]
17namespace.default.isolated = false
18
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}
29
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}
41