commit | b2893c9e9e84e51d6e11ddae7c6908bb707ddbb2 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Mon Mar 30 15:21:55 2015 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Tue Mar 31 15:06:01 2015 +0000 |
tree | abfdf902a8b57d7753b80df7e7d1b41e02e41449 | |
parent | 5647cf86fc511fc365675826ab4ff56775d1206b [diff] |
When process_vm_readv fails with EPERM, try PTRACE_PEEKDATA process_vm_readv() and ptrace(PTRACE_PEEKDATA) have inconsistent access control rules wrt traced processes: process_vm_readv() is more likely to fail with EPERM than ptrace(PTRACE_PEEKDATA) when tracing a process that has execve'd a privileged executable. * util.c (umoven, umovestr): If process_vm_readv returned EPERM, fall back to ptrace(PTRACE_PEEKDATA). Reported-by: Andrew Guertin <lists@dolphinling.net>