summaryrefslogtreecommitdiff
path: root/linker/linker_namespaces.h
diff options
context:
space:
mode:
Diffstat (limited to 'linker/linker_namespaces.h')
-rw-r--r--linker/linker_namespaces.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/linker/linker_namespaces.h b/linker/linker_namespaces.h
index 6843ebc89..3c2dc20c8 100644
--- a/linker/linker_namespaces.h
+++ b/linker/linker_namespaces.h
@@ -118,14 +118,12 @@ struct android_namespace_t {
permitted_paths_ = permitted_paths;
}
- const std::vector<std::string>& get_whitelisted_libs() const {
- return whitelisted_libs_;
+ const std::vector<std::string>& get_allowed_libs() const { return allowed_libs_; }
+ void set_allowed_libs(std::vector<std::string>&& allowed_libs) {
+ allowed_libs_ = std::move(allowed_libs);
}
- void set_whitelisted_libs(std::vector<std::string>&& whitelisted_libs) {
- whitelisted_libs_ = std::move(whitelisted_libs);
- }
- void set_whitelisted_libs(const std::vector<std::string>& whitelisted_libs) {
- whitelisted_libs_ = whitelisted_libs;
+ void set_allowed_libs(const std::vector<std::string>& allowed_libs) {
+ allowed_libs_ = allowed_libs;
}
const std::vector<android_namespace_link_t>& linked_namespaces() const {
@@ -176,7 +174,7 @@ struct android_namespace_t {
std::vector<std::string> ld_library_paths_;
std::vector<std::string> default_library_paths_;
std::vector<std::string> permitted_paths_;
- std::vector<std::string> whitelisted_libs_;
+ std::vector<std::string> allowed_libs_;
// Loader looks into linked namespace if it was not able
// to find a library in this namespace. Note that library
// lookup in linked namespaces are limited by the list of