libc question

David Brown dmlb2000@gmail.com
Tue Aug 1 02:01:00 GMT 2006


On 7/31/06, Daniel Jacobowitz <drow@false.org> wrote:
> On Mon, Jul 31, 2006 at 06:36:20PM -0700, David Brown wrote:
> > I'm looking into using LD_PRELOAD to track filesystem access and I've
> > run into a problem.  It seems there are tons of filesystem interface
> > functions in glibc that do various things, however, many of them (like
> > mkstemp, mktemp, etc) don't seem to use open. They seem to use __open
> > instead, an internal function that I can't seem to over-ride in
> > LD_PRELOAD.  So I'm stuck having to over-ride every function on the
> > interface layer of glibc. It would be nice to be able to over-ride
> > __open so that I only have to do the tracking once rather than the
> > many times for all the functions that call __open internally.
>
> This is a FAQ.  There is no way to do this; glibc's internal interfaces
> can not be overridden.  Sorry.

Is there any particular reason for this? security? sake of standardization?

- David Brown



More information about the Libc-alpha mailing list