2 ms·
Intercepting system calls seems like the easiest way (I expect most of these failures are in I/O). Use LD_PRELOAD to easily hook the libc wrappers, for (almost)
by JoachimSchipper 11y ago
Intercepting system calls seems like the easiest way (I expect most of these failures are in I/O). Use LD_PRELOAD to easily hook the libc wrappers, for (almost) anything C-based.
Deeper simulation is possible, but this should get you the low-hanging fruit.
- LukeShu 11y agoUse ptrace to wrap the system calls for things that aren't C-based (though this is a little more involved than LD_PRELOAD).