Exploiting symlinks and tmpfiles
Posted Sep 20, 2007 8:58 UTC (Thu) by
intgr (subscriber, #39733)
Parent article:
Exploiting symlinks and tmpfiles
When creating files, ensure that the open() call uses O_CREAT | O_EXCL
What about programs that use the buffered ANSI
fopen() call? As far as I can tell, there is no easy and portable way to use it for atomic file creation. Using
open() and
fdopen() is an alternative, but again is usable on POSIX systems only.
(
Log in to post comments)