httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: Deja vu
Date Wed, 03 Jan 2001 23:33:39 GMT
rbb@covalent.net wrote:
> 
> > >> >So we need to make it threadsafe when its missing, then?
> > >>
> > >> You have to wrap it in a mutex and copy the data somewhere safe.
> > >
> > >If you are going to do that, you have to make sure that it doesn't call
> > >any other functions that might be shared with another part of libc.  :-)
> >
> > Yes, in particular for this case all other functions that access the
> > passwd database.
> 
> This needs to be VERY well documented if we are going to try to implement
> it.  Basically, this means that suexec and userdir can't really be put
> into the same server on a machine with a threaded MPM and without _r
> functions.  Doing so will open a potential security whole.  Both userdir
> and SuEXec use the C Run-Time functions to get information from the
> password database, and if they happen to do so at the same time from the
> same process, we have problems.

So we should make that function exit with an error that indicates that
it isn't threadsafe - which will ultimately cause (if they are correctly
written) suexec and userdir to fail with an appopriate diagnostic,
right?

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Mime
View raw message