On Mon, Aug 22, 2005 at 09:57:46PM -0400, Kristian Benoit wrote: > On Mon, 2005-08-22 at 12:24 -0700, Zac Medico wrote: > > AFAIK we can intercept getenv() calls the same way that we intercept filesystem calls. IMO the white/black/override lists would best be implemented at this level. > > getenv is'nt a system call. Nor is glibc's open call, although it hands off to a syscall . LD_PRELOAD just inserts (essentially) it's functions into the symbol resolution order; your symbols get used rather then those from the lib. It's possible, I just don't like it. :) ~harring