Hacker News new | past | comments | ask | show | jobs | submit login

I had, but that's not the situation I had in mind. You can only use ptrace on a child process. You can't use ptrace to attach to, say, another user's process.



You can attach to any of your processes, that's how debuggers work! Ever used gdb to attach to a running process and debug it on the fly? This is done with ptrace() with the PT_ATTACH flag.

Now ptrace is known to be severly limited on Mac OS X, but there are ways around it: http://uninformed.org/index.cgi?v=4&a=3&p=14


See PT_ATTACH, and wouldn't both Finder and Dropbox be running as the user?




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

Search: