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

@@ -52,7 +52,6 @@
#include "sudo.h"
#include "sudo_exec.h"
#include "sudo_event.h"
#include "sudo_plugin.h"
#include "sudo_plugin_int.h"
@@ -314,7 +313,7 @@ sudo_terminated(struct command_status *cstat)
debug_return_bool(false);
}
#if SUDO_API_VERSION != SUDO_API_MKVERSION(1, 14)
#if SUDO_API_VERSION != SUDO_API_MKVERSION(1, 15)
# error "Update sudo_needs_pty() after changing the plugin API"
#endif
static bool