Add a plugin interface to sudo main event loop.

This commit is contained in:
Todd C. Miller
2019-11-15 13:36:01 -07:00
parent 58cede6fee
commit 5793023ffd
17 changed files with 1114 additions and 199 deletions

View File

@@ -104,6 +104,14 @@ struct plugin_container {
};
TAILQ_HEAD(plugin_container_list, plugin_container);
/*
* Private implementation of struct sudo_plugin_event.
*/
struct sudo_plugin_event_int {
struct sudo_event private; /* must be first */
struct sudo_plugin_event public;
};
extern struct plugin_container policy_plugin;
extern struct plugin_container_list io_plugins;