Add event_alloc to the audit plugin API.

The sudoers audit plugin will use this to communicate with sudo_logsrvd.
This commit is contained in:
Todd C. Miller
2020-11-02 15:28:21 -07:00
parent ad40241703
commit fe9e65754c
6 changed files with 93 additions and 6 deletions

View File

@@ -430,6 +430,10 @@ sudo_init_event_alloc(void)
if (container->u.io->version >= SUDO_API_MKVERSION(1, 15))
container->u.io->event_alloc = sudo_plugin_event_alloc;
}
TAILQ_FOREACH(container, &audit_plugins, entries) {
if (container->u.audit->version >= SUDO_API_MKVERSION(1, 17))
container->u.audit->event_alloc = sudo_plugin_event_alloc;
}
debug_return;
}