Quantcast
Channel: Planet Apache
Viewing all articles
Browse latest Browse all 9364

Bryan Pendleton: Ubuntu 10.10 kernel hardening, ptrace protection, and GDB attaching

$
0
0
Today I happened to try to use the gdb debugger to try to attach to an already-running process, and failed:

ptrace: Operation not permitted.


After a certain amount of bashing-of-head-against-wall and cursing-of-frustration-didn't-this-work-before activities, I did a bit of web searching, and found:



I'm not completely sure what to make of this, but the suggested workaround:

# echo 0 > /proc/sys/kernel/yama/ptrace_scope

(executed as root) seems to have done the trick, for now.

If this happened to be your particular nightmare as well, hopefully this saved you a few seconds of anguish...

Viewing all articles
Browse latest Browse all 9364

Trending Articles