Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b31caa95 authored by Dimitry Ivanov's avatar Dimitry Ivanov
Browse files

Pass permitted_path to the linker as is.

Now that we have the fixed list of whitelisted libraries
there is no longer need to check if java_permitted_path is nullptr.
In fact checking it prevents custom classloaders created by apps
from loading libraries using absolute path.

Bug: http://b/28659864
Change-Id: I1bfc16a573b090f70f078ecccd0e4016939a5dc0
parent 422492c5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -99,9 +99,7 @@ class LibraryNamespaces {
                                  nullptr,
                                  library_path.c_str(),
                                  namespace_type,
                                  java_permitted_path != nullptr ?
                                      permitted_path.c_str() :
                                      nullptr);
                                  permitted_path.c_str());

    if (ns != nullptr) {
      namespaces_.push_back(std::make_pair(env->NewWeakGlobalRef(class_loader), ns));