External modes are now loaded with RTLD_LOCAL

This commit is contained in:
Scoopta 2019-11-04 13:29:53 -08:00
parent 5bb351d450
commit 9d5e8e2e5a

View File

@ -412,7 +412,7 @@ static void* start_thread(void* data) {
} else {
char* plugins_dir = utils_concat(2, config_dir, "/plugins/");
char* full_name = utils_concat(2, plugins_dir, mode);
void* plugin = dlopen(full_name, RTLD_LAZY);
void* plugin = dlopen(full_name, RTLD_LAZY | RTLD_LOCAL);
free(full_name);
free(plugins_dir);
init = dlsym(plugin, "init");