From 25c9ee1bd7457749815fd320567521032cb8090f Mon Sep 17 00:00:00 2001 From: asmodai Date: Thu, 27 Jul 2017 19:59:35 +0300 Subject: [PATCH] Load plugins with RTLD_DEEPBIND option --- metamod/src/osdep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metamod/src/osdep.cpp b/metamod/src/osdep.cpp index 02db753..47b6e22 100644 --- a/metamod/src/osdep.cpp +++ b/metamod/src/osdep.cpp @@ -62,7 +62,7 @@ static ElfW(Addr) dlsize(void* base) module_handle_t CSysModule::load(const char* filepath) { if (!m_handle) { - m_handle = dlopen(filepath, RTLD_NOW); + m_handle = dlopen(filepath, RTLD_NOW | RTLD_LOCAL | RTLD_DEEPBIND); char buf[1024], dummy[1024], path[260]; sprintf(buf, "/proc/%i/maps", getpid());