Exploiting symlinks and tmpfiles
Posted Sep 20, 2007 8:58 UTC (Thu) by intgr
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()
is an alternative, but again is usable on POSIX systems only.
to post comments)