[Pulp-list] Avoid usage of '/tmp'

John Matthews jmatthew at redhat.com
Wed Dec 7 20:11:59 UTC 2011


The issue of Grinder writing some data to /tmp/grinder and referring to it in between runs came up during our SELinux policy rewrite.  Dan Walsh suggested we avoid using '/tmp/grinder' and instead switch to '/var/run/grinder'.  I wanted to share his blog post highlighting this reason with the team.

http://danwalsh.livejournal.com/11467.html
<snippet from above>
"
  Daemon developers should follow these rules:

  /tmp is for users to store their stuff  not for daemons or any process that is started in the boot process.
  If a daemon wants to communicate with a user then he should do it via /var/run/DAEMON.   
  If you have a daemon that wants its temporarily files to survive a reboot. consider using /var/cache/DAEMON
"

Pulp's BZ to fix this:  https://bugzilla.redhat.com/show_bug.cgi?id=761173




More information about the Pulp-list mailing list