Relying on /proc/self/mem to bypass mprotect issues turn out to be unreliable: the process can change into another user which does not have access to this file, hence ptrace as ulp being root is the only way out.
This reverts commit 795c59019edafb0135560e4a8c9630164b4ef784.
Relying on
/proc/self/mem
to bypassmprotect
issues turn out to be unreliable: the process can change into another user which does not have access to this file, hence ptrace asulp
being root is the only way out.This reverts commit 795c59019edafb0135560e4a8c9630164b4ef784.