[ccache] Temporary Files vs NFS

Joel Rosdahl joel at rosdahl.net
Sat Apr 17 11:23:32 MDT 2010


On 2010-04-14 18:48, Joel Rosdahl wrote:

> Unless I find any problem, I will remove the CCACHE_TEMPDIR setting and
> just use mkstemp(3) to create temporary files.

After thinking about this, I will keep CCACHE_TEMPDIR. While ccache 
would perform better by default for caches on NFS if /tmp were to be 
used for temporary files, this would also open up for attacks since the 
temporary files need to be accessed by name (see for instance 
http://seclists.org/bugtraq/2002/Dec/210). Very unlikely, yes, but still 
a potential security problem not worth ignoring.

-- Joel


More information about the ccache mailing list