Subject says it all. The sysstat package uses insecure method of generating temporary filenames by using the PID in /tmp
So does the isag binary it includes btw
--- sysstat.spec~ Sat Nov 23 05:33:21 2002 +++ sysstat.spec Wed Dec 18 20:26:44 2002 @@ -53,8 +53,8 @@ %triggerpostun -- sysstat <= 3.3.3-1 # earlier versions of sysstat had crontabs done in a bad way. fix it. if [ `id -u` = "0" -a "$1" -ge "2" ]; then - egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$ - mv /tmp/crontab.$$ /etc/crontab && chmod 644 /etc/crontab + egrep -v 'sysstat|sa1|sa2' /etc/crontab > /etc/crontab.tmp$$ + mv /etc/crontab.tmp$$ /etc/crontab && chmod 644 /etc/crontab fi %preun
still affects 9
I have built packages with this fixed for RHEL2.1, RHEL3, fc2. As soon as someone tells me (where to find documentation about) how to check this into CVS, pipe this through beehive, feed this to QA for errata, I'll make the fixed packages available. Sorry, but I'm new to all this ;-).
isag tmp hole is also fixed in sysstat-4.0.1-8 (for RHEL2.1), using mktemp.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2004-053.html