Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That's interesting, I never knew that. I wonder why that use case isn't possible.


You 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: