2 ms·
Sadly, it is not possible to combine this tool with programs that use ptrace themselves, because of limitations in the implementation of ptrace. In Linux, a pr
by amelius 11y ago
Sadly, it is not possible to combine this tool with programs that use ptrace themselves, because of limitations in the implementation of ptrace.
In Linux, a program that is being ptraced is not allowed to ptrace another program.
- deutronium 11y agoThat's interesting, I never knew that. I wonder why that use case isn't possible.
- amelius 11y agoYou can try it yourself by running "strace" on itself, e.g.: strace -f strace -f ls I guess this isn't possible because the kernel developers only envisioned ptrace to be useful for debugging (they supposedly didn't think about sandboxing applications), and implementing a "recursive" version of ptrace is probably more difficult.