Bugtraq mailing list archives

Re: Postfix design directions


From: cadams () RO COM (Chris Adams)
Date: Wed, 23 Dec 1998 14:35:12 -0600


Once upon a time, Wietse Venema <wietse () PORCUPINE ORG> said:
Attack 2 is a wash. Postfix deletes a queue file that has multiple
links, so that the link count goes down; Postfix delivers a queue
file that has one hard link and that satisfies the Postfix-specific
record structure and record sequence requirements; Postfix discards
any other queue file.

Seems like there could be race conditions here too.  For example, if you
check the link count, and if it is 1, process the file and unlink it,
someone could wait until you are processing the file to create a hard
link to it.  Then, after you unlinked the first copy, the second copy
would again have a link count of 1.

--
Chris Adams - cadams () ro com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.



Current thread: