2 ms·
This was a great tool many years ago for scripting this functionality with Python: https://github.com/tutufan/subterfugue https://github.com/tutufan/subterfugue
by schoen 8y ago
This was a great tool many years ago for scripting this functionality with Python: https://github.com/tutufan/subterfugue https://github.com/tutufan/subterfugue
The tagline was "strace meets expect". You could write a Python script to control what happened when the process being traced made a syscall of your choice! This was super-fun and super-educational and also came with a little manifesto about ensuring users' control over software rather than the other way around.
Unfortunately subterfugue hasn't been maintained in years and I think it hasn't worked with the last few major releases of the Linux kernel. It would be amazing to see a similar tool nowadays.