Comment 20 for bug 6671

Revision history for this message
Kees Cook (kees) wrote : Re: [Bug 6671] Re: insecure file access (breezy, dapper, edgy, gutsy, hardy)

On Thu, May 01, 2008 at 10:24:51AM -0000, Mauro Vale wrote:
> Blender should use a random file name every time it needs to render.

Well, use of /tmp should be only by mkstemp().

> This way it is impossible to overwrite anything with a symlink ;)

Alternatively, require that the files not exist first, using open with
O_CREAT and O_EXCL.