Pass plugin path in the settings array.

This commit is contained in:
Todd C. Miller
2014-10-22 13:13:00 -06:00
parent 1e0b8903f2
commit 346ff6766e
7 changed files with 44 additions and 3 deletions

View File

@@ -237,6 +237,7 @@ sudo_load_plugin(struct plugin_container *policy_plugin,
}
if (handle != NULL) {
policy_plugin->handle = handle;
policy_plugin->path = sudo_estrdup(path);
policy_plugin->name = info->symbol_name;
policy_plugin->options = info->options;
policy_plugin->u.generic = plugin;
@@ -255,6 +256,7 @@ sudo_load_plugin(struct plugin_container *policy_plugin,
if (handle != NULL) {
container = sudo_ecalloc(1, sizeof(*container));
container->handle = handle;
container->path = sudo_estrdup(path);
container->name = info->symbol_name;
container->options = info->options;
container->u.generic = plugin;