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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user