Add back io logging (transcript) support. Currently, the open function

runs too early and it is not possible to use the io module independently
of the policy module.
This commit is contained in:
Todd C. Miller
2010-03-27 20:19:40 -04:00
parent 681c6faf3e
commit 05e8023e78
5 changed files with 352 additions and 13 deletions

View File

@@ -297,6 +297,13 @@ YY_DECL;
/* atobool.c */
int atobool(const char *str);
/* iolog.c */
int sudoers_io_open(unsigned int version, sudo_conv_t conversation,
char * const settings[], char * const user_info[], char * const user_env[]);
void sudoers_io_close(int exit_status, int error);
int sudoers_io_version(int verbose);
int sudoers_io_log_output(const char *buf, unsigned int len);
/* Only provide extern declarations outside of sudo.c. */
#ifndef _SUDO_MAIN
extern struct sudo_user sudo_user;