DynamoRIO apparently writes to some HOME-relative file when attaching to a process. This file must be accessible both by the process you're attaching to and the pyda-attach call. This unwritten requirement, combined with the fact that you need CAP_SYS_PTRACE to attach to another process, makes it very prone to errors (e.g. you may try running pyda-attach as sudo, but that also affects HOME)
At a minimum, we should patch DynamoRIO to at least print a proper error message in this case...
DynamoRIO apparently writes to some HOME-relative file when attaching to a process. This file must be accessible both by the process you're attaching to and the
pyda-attachcall. This unwritten requirement, combined with the fact that you need CAP_SYS_PTRACE to attach to another process, makes it very prone to errors (e.g. you may try running pyda-attach assudo, but that also affects HOME)At a minimum, we should patch DynamoRIO to at least print a proper error message in this case...