[sudo-workers] A plugin API questions
Todd C. Miller
Todd.Miller at courtesan.com
Fri Sep 30 08:48:12 EDT 2011
On Fri, 30 Sep 2011 13:33:50 +0200, Jakub Hrozek wrote:
> There's one thing we're not sure about -- the sudo_plugin man
> page suggests that the plugin should use the conversation and the
> plugin_printf functions to interact with the user or print errors.
That is correct.
> However, the sudoers plugin uses a mix of these functions and plain
> fprintf(stderr, ...). Is there any guideline on where to use one and the
> other? Was the sudoers plugin fully converted to use the conversation
The sudoers plugin in the current version of sudo does not write
directly to stderr, though certain standalone programs like visudo
and sudoreplay do.
More information about the sudo-workers