summaryrefslogtreecommitdiff
path: root/linker/linker.cpp
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2019-01-12 21:03:25 -0800
committerVic Yang <victoryang@google.com>2019-03-20 10:20:49 -0700
commit2d020e43fb098dde99d6f9a1c5f4aeebdda914ea (patch)
tree8e53ae0dc313d988ad66ea5892f4daf9e5349b08 /linker/linker.cpp
parentebdf4c19f9e034d7ec8e0e57539890d5c93eaed1 (diff)
linker: Add support for "whitelisted" property in linker config files
In order to enable no-vendor-variant VNDK, we need a way to restrict a namespace to only a list of whitelisted libraries. We add a new "whitelisted" property for this. If the property is not set, all libraries in the search paths are available in a namespace. If the property is set, only the libraries named are available. Bug: 119423884 Test: Boot with no-vendor-variant VNDK enabled using the new property. Change-Id: Id808c1733c8e2c2c3462b04c72461f9698403571
Diffstat (limited to 'linker/linker.cpp')
-rw-r--r--linker/linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 49c8f11aa..c60ab6a50 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -4156,6 +4156,7 @@ std::vector<android_namespace_t*> init_default_namespaces(const char* executable
ns->set_isolated(ns_config->isolated());
ns->set_default_library_paths(ns_config->search_paths());
ns->set_permitted_paths(ns_config->permitted_paths());
+ ns->set_whitelisted_libs(ns_config->whitelisted_libs());
namespaces[ns_config->name()] = ns;
if (ns_config->visible()) {