October 11, 2004

Secure programmer: Prevent race conditions

David Wheeler has released another great article in his secure programmer series on how to "Prevent race conditions".

In the article you will learn what a race condition is and why it can cause security problems. The article shows how to handle common race conditions on UNIX-like systems, including how to create lock files correctly, alternatives to lock files, how to handle the filesystem, and how to handle shared directories (and in particular how to correctly create temporary files in the /tmp directory). You'll also learn a bit about signal handling.

It's a great article. I love how he introduces the article with a real problem TripWire used to have in their product. A good way to illustrate how to properly remedy real world problems.

Happy reading!

Posted by SilverStr at October 11, 2004 08:42 AM | TrackBack