From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Description of problem: fixfiles relabel stomps on log file in /tmp # fixfiles relabel logging to /tmp/fixfiles.fKyAqa3977 Cleaning out /tmp In the case of relabel /tmp is cleaned out after "mktemp /tmp/fixfiles.XXXXXXXXXX" It is recreated later with " ... |tee $LOGFILE" with a less correct umask and there is a small window where the log file could be opened by another user and the log trashed or strange content included. Version-Release number of selected component (if applicable): policycoreutils-1.11-2 How reproducible: Always Steps to Reproduce: 1. /sbin/fixfiles relabel 2. inspect the output # fixfiles relabel logging to /tmp/fixfiles.fKyAqa3977 Cleaning out /tmp 3. note the order of events... strace -f will show the unlink and recreation with a new umask. Additional info: More bad style than anything at this point since 'tee' exposes the content in real time.
Moved log file to /var/tmp/ Fixed in policycoreutils-1.11-4 Dan