summaryrefslogtreecommitdiff
path: root/linker/linker_namespaces.cpp
diff options
context:
space:
mode:
authorJustin DeMartino <jjdemartino@google.com>2020-09-21 13:23:58 -0700
committerJustin DeMartino <jjdemartino@google.com>2020-09-21 13:23:58 -0700
commit7e4fe6a28b718ab97c08811566238af2893ca65b (patch)
tree5413a5ec890b5a1ac4fbbe4548b5014e41a2591b /linker/linker_namespaces.cpp
parentdcdcb3fa15004669823a3a118189d9d72ff30852 (diff)
parentab08b955a34423d53b28a6210e7530e67241af4a (diff)
Merge SP1A.200921.001
Change-Id: Id2ab019914bb555dadf52c46b8403c0d5fb3c20a
Diffstat (limited to 'linker/linker_namespaces.cpp')
-rw-r--r--linker/linker_namespaces.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/linker/linker_namespaces.cpp b/linker/linker_namespaces.cpp
index b9936891d..518212971 100644
--- a/linker/linker_namespaces.cpp
+++ b/linker/linker_namespaces.cpp
@@ -39,10 +39,9 @@ bool android_namespace_t::is_accessible(const std::string& file) {
return true;
}
- if (!whitelisted_libs_.empty()) {
+ if (!allowed_libs_.empty()) {
const char *lib_name = basename(file.c_str());
- if (std::find(whitelisted_libs_.begin(), whitelisted_libs_.end(),
- lib_name) == whitelisted_libs_.end()) {
+ if (std::find(allowed_libs_.begin(), allowed_libs_.end(), lib_name) == allowed_libs_.end()) {
return false;
}
}