summaryrefslogtreecommitdiffstats
path: root/base/native_library_linux.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 15:54:50 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 15:54:50 +0000
commitd0001a5d4727367f7cc59437dd02d667e9943cac (patch)
treed0e5f41e88ae08d13f1b55c8d7ae45590f4e677a /base/native_library_linux.cc
parentff72d8700783eadd7b6a05e3cec4e60a57dcabb3 (diff)
downloadchromium_src-d0001a5d4727367f7cc59437dd02d667e9943cac.zip
chromium_src-d0001a5d4727367f7cc59437dd02d667e9943cac.tar.gz
chromium_src-d0001a5d4727367f7cc59437dd02d667e9943cac.tar.bz2
Use RTLD_DEEPBIND to make sure plugins don't use Chrome's symbols instead of their own
Review URL: http://codereview.chromium.org/112030 Patch from Antoine Labour <piman@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/native_library_linux.cc')
-rw-r--r--base/native_library_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/native_library_linux.cc b/base/native_library_linux.cc
index 1ec7aab..f103bba 100644
--- a/base/native_library_linux.cc
+++ b/base/native_library_linux.cc
@@ -13,7 +13,7 @@ namespace base {
// static
NativeLibrary LoadNativeLibrary(const FilePath& library_path) {
- void* dl = dlopen(library_path.value().c_str(), RTLD_LAZY);
+ void* dl = dlopen(library_path.value().c_str(), RTLD_LAZY|RTLD_DEEPBIND);
if (!dl)
NOTREACHED() << "dlopen failed: " << dlerror();