3 ms·
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.
by scott_s 15y ago
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.
- wmf 15y agoSee PT_ATTACH, and wouldn't both Finder and Dropbox be running as the user?
- deleted 15y ago[deleted]
- mrb 15y agoYou 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 http://uninformed.org/index.cgi?v=4&a=3&p=14