diff --git a/plugins/sudoers/group_plugin.c b/plugins/sudoers/group_plugin.c index 2bc536cbc..614ce1a29 100644 --- a/plugins/sudoers/group_plugin.c +++ b/plugins/sudoers/group_plugin.c @@ -54,8 +54,8 @@ #include "sudoers.h" -#ifndef RTLD_LOCAL -# define RTLD_LOCAL 0 +#ifndef RTLD_GLOBAL +# define RTLD_GLOBAL 0 #endif static void *group_handle; @@ -109,7 +109,7 @@ group_plugin_load(char *plugin_info) } /* Open plugin and map in symbol. */ - group_handle = dlopen(path, RTLD_LAZY|RTLD_LOCAL); + group_handle = dlopen(path, RTLD_LAZY|RTLD_GLOBAL); if (!group_handle) { warningx(_("unable to dlopen %s: %s"), path, dlerror()); goto done; diff --git a/src/load_plugins.c b/src/load_plugins.c index e756e57ed..b4a82e0ae 100644 --- a/src/load_plugins.c +++ b/src/load_plugins.c @@ -48,8 +48,8 @@ #include "sudo_plugin.h" #include "sudo_plugin_int.h" -#ifndef RTLD_LOCAL -# define RTLD_LOCAL 0 +#ifndef RTLD_GLOBAL +# define RTLD_GLOBAL 0 #endif const char *noexec_path = _PATH_SUDO_NOEXEC; @@ -176,7 +176,7 @@ sudo_load_plugins(const char *conf_file, } /* Open plugin and map in symbol */ - handle = dlopen(path, RTLD_LAZY|RTLD_LOCAL); + handle = dlopen(path, RTLD_LAZY|RTLD_GLOBAL); if (!handle) { warningx(_("unable to dlopen %s: %s"), path, dlerror()); goto done;