From 563ca3815494b47d5af100c6d9b9595e0bc89372 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 13 Jun 2019 13:05:56 -0700 Subject: [PATCH] Link the sanitizer runtime libraries to the default unrestricted namespace. Without this, binaries can't be run out of /data/local/tmp on a HWASANified device. Test: Chromium's /data/local/tmp/md5sum/md5sum_bin works on walleye_hwasan-userdebug Change-Id: Ieceaab8aae0024864022ca42b38aa36e6212cf31 --- rootdir/etc/ld.config.txt | 1 + rootdir/etc/ld.config.vndk_lite.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index 7f129f8f1..b1616d38b 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -617,6 +617,7 @@ namespace.default.link.runtime.shared_libs += libnativeloader.so # TODO(b/122876336): Remove libpac.so once it's migrated to Webview namespace.default.link.runtime.shared_libs += libpac.so +namespace.default.link.runtime.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% namespace.default.link.resolv.shared_libs = libnetd_resolv.so diff --git a/rootdir/etc/ld.config.vndk_lite.txt b/rootdir/etc/ld.config.vndk_lite.txt index 0880be0f5..921240851 100644 --- a/rootdir/etc/ld.config.vndk_lite.txt +++ b/rootdir/etc/ld.config.vndk_lite.txt @@ -428,6 +428,7 @@ namespace.default.link.runtime.shared_libs += libnativeloader.so # TODO(b/122876336): Remove libpac.so once it's migrated to Webview namespace.default.link.runtime.shared_libs += libpac.so +namespace.default.link.runtime.shared_libs += %SANITIZER_RUNTIME_LIBRARIES% namespace.default.link.resolv.shared_libs = libnetd_resolv.so