Add support for plugin args at the end of a Plugin line in sudo.conf.

Bump the minor number accordingly and update the documentation.  A
plugin must check the sudo front end's version before using the
plugin_args parameter since it is only supported for API version
1.2 and higher.
This commit is contained in:
Todd C. Miller
2012-03-02 11:04:09 -05:00
parent c623857fc9
commit a16dee915b
14 changed files with 354 additions and 150 deletions

View File

@@ -131,6 +131,7 @@ sudo_load_plugins(struct plugin_container *policy_plugin,
}
policy_plugin->handle = handle;
policy_plugin->name = info->symbol_name;
policy_plugin->args = info->args;
policy_plugin->u.generic = plugin;
} else if (plugin->type == SUDO_IO_PLUGIN) {
container = emalloc(sizeof(*container));
@@ -138,6 +139,7 @@ sudo_load_plugins(struct plugin_container *policy_plugin,
container->next = NULL;
container->handle = handle;
container->name = info->symbol_name;
container->args = info->args;
container->u.generic = plugin;
tq_append(io_plugins, container);
}