Content deleted Content added
→Preventing TOCTOU: fmt |
|||
Line 65:
== Preventing TOCTOU ==
Despite conceptual simplicity, TOCTOU race conditions are difficult to avoid and eliminate. One general technique is to use [[exception handling]] instead of checking, under the philosophy of
In the context of file system TOCTOU race conditions, the fundamental challenge is ensuring that the file system cannot be changed between two system calls. In 2004, an impossibility result was published, showing that there was no portable, deterministic technique for avoiding TOCTOU race conditions.<ref>{{cite web |last1=Dean |first1=Drew |last2=Hu |first2=Alan J. |year=2004 |title=Fixing Races for Fun and Profit: How to use access(2) |work=Proceedings of the 13th USENIX Security Symposium, San Diego (CA), August 9–13, 2004 |pages=195–206 |url=http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.83.8647}}</ref>
|