Bug 446 - provide option to maintain compressed data in /var/log/sudo-io
provide option to maintain compressed data in /var/log/sudo-io
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudoreplay
1.7.4
All All
: low enhancement
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-18 15:10 MDT by Kent Squires
Modified: 2011-03-03 09:55 MST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Squires 2010-10-18 15:10:43 MDT
i found the following command produces massive files in /var/log/sudo-io  (in the stdout or stdin files) on both source and destination servers

/tmp/usr/bin/sudo /usr/bin/tar -cf - /maint | /usr/bin/ssh destination_server /usr/bin/sudo /usr/bin/tar -xf - /maint

would it be possible for sudo to be able to maintain the log files it creates under /var/log/sudo-io as compressed? (either using native unix compress or gzip?) to help reduce logging space?
Comment 1 Todd C. Miller 2010-10-18 15:21:22 MDT
This already exists; you just need to have zlib available.  Sudo's configure script will look for zlib and link against it if it is found.  You can also use the --enable-zlib=PATH confgure option to tell configure where to find zlib if it is not in the standard library search path.
Comment 2 Todd C. Miller 2010-10-28 12:27:33 MDT
Sudo 1.7.5 will ship with an embedded copy of zlib for use on systems that lack it.
Comment 3 Todd C. Miller 2010-11-03 13:33:25 MDT
The first beta rlease of sudo 1.7.5 is now available
http://www.sudo.ws/sudo/dist/beta/sudo-1.7.5b1.tar.gz
Comment 4 Todd C. Miller 2011-03-03 09:55:06 MST
Fixed in sudo 1.7.5 and 1.8.0.