715b1aab50
Non-treblized devices use ld.config.legacy.txt, which does not support product partition, leading to access denial from/to product partition. Declare directly /product since search paths are resolved in linker config. Test: m -j with non-treblized device upgraded to P. Change-Id: Ic142b807f5dbffdfa5c774b3df8d0903b9626b6a
45 lines
1.8 KiB
Text
45 lines
1.8 KiB
Text
# Copyright (C) 2017 The Android Open Source Project
|
|
#
|
|
# Bionic loader config file.
|
|
# This gives the exactly the same namespace setup in pre-O.
|
|
#
|
|
|
|
# All binaries gets the same configuration 'legacy'
|
|
dir.legacy = /system
|
|
dir.legacy = /product
|
|
dir.legacy = /vendor
|
|
dir.legacy = /odm
|
|
dir.legacy = /sbin
|
|
|
|
# Except for /postinstall, where only /system and /product are searched
|
|
dir.postinstall = /postinstall
|
|
|
|
[legacy]
|
|
namespace.default.isolated = false
|
|
|
|
namespace.default.search.paths = /system/${LIB}
|
|
namespace.default.search.paths += /product/${LIB}
|
|
namespace.default.search.paths += /vendor/${LIB}
|
|
namespace.default.search.paths += /odm/${LIB}
|
|
|
|
namespace.default.asan.search.paths = /data/asan/system/${LIB}
|
|
namespace.default.asan.search.paths += /system/${LIB}
|
|
namespace.default.asan.search.paths += /data/asan/product/${LIB}
|
|
namespace.default.asan.search.paths += /product/${LIB}
|
|
namespace.default.asan.search.paths += /data/asan/vendor/${LIB}
|
|
namespace.default.asan.search.paths += /vendor/${LIB}
|
|
namespace.default.asan.search.paths += /data/asan/odm/${LIB}
|
|
namespace.default.asan.search.paths += /odm/${LIB}
|
|
|
|
###############################################################################
|
|
# Namespace config for binaries under /postinstall.
|
|
# Only one default namespace is defined and it has no directories other than
|
|
# /system/lib and /product/lib in the search paths. This is because linker
|
|
# calls realpath on the search paths and this causes selinux denial if the
|
|
# paths (/vendor, /odm) are not allowed to the poinstall binaries.
|
|
# There is no reason to allow the binaries to access the paths.
|
|
###############################################################################
|
|
[postinstall]
|
|
namespace.default.isolated = false
|
|
namespace.default.search.paths = /system/${LIB}
|
|
namespace.default.search.paths += /product/${LIB}
|