Todd C. Miller
83de9e28f1
Add missing cwd line to I/O log info file that got dropped when
...
iolog_deserialize_info() was added
2010-12-30 17:01:41 -05:00
Todd C. Miller
fec059a890
Avoid relying on globals filled in by the sudoers policy module for
...
the sudoers I/O log module. The I/O log open function now pulls the
bits it needs out of user_info and command_info.
2010-12-29 17:32:04 -05:00
Todd C. Miller
97b7ae8892
If no iolog file is specified by the policy plugin, use io_nextid()
...
to determine the next file in the sequence.
2010-12-29 11:07:45 -05:00
Todd C. Miller
02ed3d5b3e
Add support for the iolog_compress variable in command_info.
2010-12-28 12:23:18 -05:00
Todd C. Miller
bff14f60e6
Add sigsetjmp() calls to all plugin entry points just to be safe.
2010-12-28 11:02:12 -05:00
Todd C. Miller
4c1aecd48f
Only use mkdtemp() if the path ends in at least 6 Xs since otherwise
...
glibc mkdtemp() returns EINVAL.
2010-12-27 12:32:28 -05:00
Todd C. Miller
fba58fa3f7
Allow sudoers to specify the iolog file in addition to the iolog dir.
...
Add escape sequence support to iolog file and dir: sequence number,
user, group, runas_user, runas_group, hostname and command in
addition to any escape sequence recognized by strftime(3).
2010-12-27 12:18:32 -05:00
Todd C. Miller
524021a377
Add missing sigsetjmp() call in I/O plugin open function.
...
Fixes a crash when the I/O plugin calls error(), errorx() or log_error().
2010-12-27 11:24:47 -05:00
Todd C. Miller
5d59c10b95
Give the policy module fine-grained control over what the I/O plugin
...
logs.
2010-12-21 17:43:18 -05:00
Todd C. Miller
a10f216797
Adapt plugins to version I/O logging ABI 1.1
2010-12-20 16:28:20 -05:00
Todd C. Miller
b2a6984606
Make I/O log dir configurable.
2010-12-10 14:14:35 -05:00
Todd C. Miller
30fe4a067c
Set usrinfo for AIX
...
Set adminstrative domain for the process when looking up user's
password or group info and when preparing for execve().
Include strings.h even if string.h exists since they may define
different things. Fixes warnings on AIX and others.
2010-06-29 13:08:05 -04:00
Todd C. Miller
d69e4fd42b
Add a cast to quiet a compiler warning.
2010-06-18 18:45:43 -04:00
Todd C. Miller
ebc152ce8f
Check for zlib.h in addition to libz.
2010-06-16 16:51:46 -04:00
Todd C. Miller
fdd4805438
Remove an XXX
2010-06-15 17:00:42 -04:00
Todd C. Miller
1fbb1819e7
Use sudo_printf for I/O log version
...
Clarify policy plugin version string
2010-06-10 14:24:06 -04:00
Todd C. Miller
9b4203606d
In sudoers_io_close(), skip NULL io_fds[] elements.
2010-06-08 16:57:18 -04:00
Todd C. Miller
79f178923e
Replace timerfoo macros with timevalfoo since the timer macros are known
...
to be busted on some systems.
2010-06-08 18:38:23 -04:00
Todd C. Miller
6f05b565c3
Add use_pty sudoers option to force use of a pty even when not logging I/O.
2010-06-08 11:25:33 -04:00
Todd C. Miller
3aad381186
Add #define for maximum session id
2010-06-07 18:53:58 -04:00
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