Re: [exim-dev] Why does tls_dropprivs_validate_require_ciphe…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Michael Haardt
Päiväys:  
Vastaanottaja: pdp, jgh
Kopio: exim-dev
Aihe: Re: [exim-dev] Why does tls_dropprivs_validate_require_cipher() call fflush(NULL)?
> > > I just came across those calls, because they fail on SunOS 4. Which files are
> > > they supposed to flush?
> >
> > The linux manpage, at least, for fflush() says that NULL will
> > flush all open files.
>
> This is actually ANSI C. We're not even talking POSIX here, but C
> itself.
>
> It's "flush all stdio streams which might have buffered data", which
> seems appropriate before a security boundary transition.


I know what it does, but why is it needed? Which stdio files are open at
that time? If we don't know, how can we be sure that their descriptors
should be inherited?

Michael