From 30200f1e24e226bdbdf457f575ae6140a2bb73ff Mon Sep 17 00:00:00 2001 From: Ken Chen Date: Fri, 28 Dec 2018 17:17:04 +0800 Subject: [PATCH] Allow dlopen()ing libraries from the netd APEX on pasan build This is a workaround to allow us to use libnetd_resolv.so from the resolver APEX before b/120661824 is fixed. We cannot put the APEX into the search path due to b/120661824, but we can put it into the permitted path, Bug: b/122073006 Test: builds, boots Test: system/netd/tests/runtests.sh Change-Id: If6f13ba9dc249d019b820a7c37cf6d4cdd8d0a7d --- rootdir/etc/ld.config.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/etc/ld.config.txt b/rootdir/etc/ld.config.txt index 8f7ceba8a..49ae96080 100644 --- a/rootdir/etc/ld.config.txt +++ b/rootdir/etc/ld.config.txt @@ -105,6 +105,7 @@ namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/framework namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/app namespace.default.asan.permitted.paths += /%PRODUCT_SERVICES%/priv-app namespace.default.asan.permitted.paths += /mnt/expand +namespace.default.asan.permitted.paths += /apex/com.android.resolv/${LIB} # Keep in sync with ld.config.txt in the com.android.runtime APEX. namespace.default.links = runtime