Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 1997 12:29:28 +1100 (EST)
From:      proff@suburbia.net
To:        hal@vailsys.com
Cc:        hackers@freebsd.org
Subject:   Re: open () unlinked?
Message-ID:  <19970117012928.15941.qmail@suburbia.net>
In-Reply-To: <32DE6EAC.1A1B@vailsys.com> from Hal Snyder at "Jan 16, 97 12:08:44 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> I was at Marcus Ranum's Usenix '97 tuturial on Coding for Hostile
> Environments, and the subject came up of creating temporary files
> securely.  Open-then-unlink leaves a window for someone to get at the
> file.
> 
> Has there been any discussion here of adding, e.g., an O_UNLINK flag to
> open (), that would effectively create an anonymous temp file?
> 

If you are using an anonymous temp file then you are doing something 
wrong. Temp files should only be used to pass data from one process to
another.

Cheers,
Julian.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970117012928.15941.qmail>