apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Bugs discovered by a research group at CWRU (2)
Date Thu, 20 Aug 2009 05:34:07 GMT
On Thu, 2009-08-20 at 01:08 -0400, Gang Shu wrote:
>  “there is a (possibly brief) period of time between the return of the
> open() call or other function creating a file descriptor and the
> fcntl() call to set the flag", so we believe that an object is changed
> to rely on FD_CLOEXEC for closure after exec, the corresponding child
> cleanup should to be changed since it will otherwise also try to
> close() the fd for a second time.

Yeah, this may be a problem. If the same file descriptor is opened after
the exec() call closes it, we may close someone else's open descriptor.

-- 
Bojan


Mime
View raw message