In that case, you can ofcourse use /etc/ld.so.preload which is honored
by setuid programs and has the advantage that it is system wide - no
need to jump through hoops to make sure LD_PRELOAD is set everywhere.
>Also it is not possible to catch calls from libc because those are already
>prelinked (e.g. when you want to patch write() printf() won't be intercepted).
Usually libc itself uses __write() internally instead of write(), and
AFAIK you can happily replace those.
Mike.
-- Miquel van Smoorenburg | Our vision is to speed up time, miquels@cistron.nl | eventually eliminating it.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu