Think you can’t interpose static binaries with LD_PRELOAD? Think again

24 points by gioele


Screwtape

Rather than emulating the entire CPU with QEMU so you can trap syscalls, why not use ptrace(2) so any CPU-intensive portions of the program still execute at native speed? Better yet, you won't need to wait for a patch to be pushed upstream.