subterfugue is/was a tool for doing ptrace-based system call interposition (not currently maintained)