Comment two linker namespace functions

Test: it builds
Change-Id: I4dee0d4da230bd559319317b504e2c597f814f50
This commit is contained in:
Ryan Prichard 2020-01-31 14:41:56 -08:00
parent 272458ee9f
commit e503383c92
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include <dlfcn.h> #include <dlfcn.h>
// Given an absolute path, can this library be loaded into this namespace?
bool android_namespace_t::is_accessible(const std::string& file) { bool android_namespace_t::is_accessible(const std::string& file) {
if (!is_isolated_) { if (!is_isolated_) {
return true; return true;
@ -67,6 +68,8 @@ bool android_namespace_t::is_accessible(const std::string& file) {
return false; return false;
} }
// Are symbols from this shared object accessible for symbol lookups in a library from this
// namespace?
bool android_namespace_t::is_accessible(soinfo* s) { bool android_namespace_t::is_accessible(soinfo* s) {
auto is_accessible_ftor = [this] (soinfo* si) { auto is_accessible_ftor = [this] (soinfo* si) {
// This is workaround for apps hacking into soinfo list. // This is workaround for apps hacking into soinfo list.