New debug framework for sudo and plugins using /etc/sudo.conf that

also supports function call tracing.
This commit is contained in:
Todd C. Miller
2011-10-22 14:00:52 -04:00
parent 697caf8df3
commit 53e3ad11b5
10 changed files with 769 additions and 76 deletions

View File

@@ -47,6 +47,7 @@
#include "sudo.h"
#include "sudo_plugin.h"
#include "sudo_debug.h"
extern int tgetpass_flags; /* XXX */
@@ -91,6 +92,10 @@ sudo_conversation(int num_msgs, const struct sudo_conv_message msgs[],
if (msg->msg)
(void) fputs(msg->msg, stderr);
break;
case SUDO_CONV_DEBUG_MSG:
if (msg->msg)
sudo_debug_write(msg->msg, strlen(msg->msg));
break;
default:
goto err;
}