Date: Fri, 27 Dec 1996 01:30:01 -0800 (PST) From: Matthew Dillon <dillon@backplane.com> To: freebsd-bugs Subject: Re: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Message-ID: <199612270930.BAA11843@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/2291; it has been noted by GNATS. From: Matthew Dillon <dillon@backplane.com> To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/2291: Race condition in pw_lock (vipw, chpass, etc....) Date: Fri, 27 Dec 1996 01:21:07 -0800 (PST) : :Why not using the O_EXLOCK flag in open(2)? : :-- :cheers, J"org : :joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE :Never trust an operating system you don't have sources for. ;-) I don't think O_EXLOCK avoids the rename()-over race condition... you still have to do the stat()/fstat() check afterwords. -Matt Matthew Dillon Engineering, BEST Internet Communications, Inc. <dillon@apollo.backplane.com> [always include a portion of the original email in any response!]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612270930.BAA11843>