Commit Graph

116 Commits

Author SHA1 Message Date
Todd C. Miller
38138e7d13 Only use I/O input log file if def_log_input is set and output file
if def_log_output is set.
2010-06-06 11:54:46 -04:00
Todd C. Miller
fe57232226 Remove redundant tty signal blocking in log function. 2010-06-04 08:56:39 -04:00
Todd C. Miller
4a7fc9a824 Place static keyword where it belongs 2010-06-03 13:13:42 -04:00
Todd C. Miller
2dd29bf64d Break sudoers transcript feature up into log_input and log_output. 2010-05-30 10:31:38 -04:00
Todd C. Miller
0e2d33b5fc Adapt sudoreplay to iolog changes. 2010-05-30 06:29:41 -04:00
Todd C. Miller
e51fd3ab72 Log all input and output into separate files and store a number on
each timing file line to indicate which file the data is in.
2010-05-29 19:44:33 -04:00
Todd C. Miller
b6f02f38c0 Make sudoers_io functions static to iolog.c 2010-05-29 10:43:34 -04:00
Todd C. Miller
34e1a06767 Use sudo_printf to display verbose version information. 2010-05-28 12:01:06 -04:00
Todd C. Miller
60e0e496ef If running a command or sudoedit in transcript mode, call io_nextid()
before log_allowed() so the session id is logged.
2010-05-24 14:30:54 -04:00
Todd C. Miller
f59669fc20 Set close on exec flag for descriptors used for I/O logging so they
are not present in the command being run.
2010-05-21 14:51:50 -04:00
Todd C. Miller
55ef027d88 Add argc and argv to I/O logger open function. 2010-05-17 10:38:56 -04:00
Todd C. Miller
9fbec34fed Add pointer to a printf like function to plugin open functon.
This can be used instead of the conversation function to display
info and error messages.
2010-05-04 19:17:31 -04:00
Todd C. Miller
05ae3ea6cb Convert to ANSI C function declarations 2010-04-22 18:09:53 -04:00
Todd C. Miller
7c344181da Remove io_conv and just use sudo_conv 2010-04-11 17:12:12 -04:00
Todd C. Miller
3242c1091d Free str after using it in the version method. Use sudo_conv, not
io_conv since we don't have the IO conversation function pointer
in the I/O version method anymore now that io_open is delayed.
2010-04-04 08:40:23 -04:00
Todd C. Miller
05e8023e78 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.
2010-03-27 20:19:40 -04:00