When trying to attach to a sleeping cgi program kernel linux-2.6.39-gentoo does not allow it. ptrace: Operation not permitted. After much searching it appears that a patch to restrict debugging of other program owners is the problem http://lwn.net/Articles/393010/ ubuntu is able to enable this back again by echo 1 | sudo tee /proc/sys/kernel/yama/ptrace_scope however in the gentoo kernel there is no such thing as yama This is a major problem for me as I NEED to be able to trace cgi's. Reproducible: Always Steps to Reproduce: 1.launch a program under user 'A' 2. as user 'B' attempt to attach to program (get error) /etc/sysctl.conf has ptrace_scope=0 and a note to turn on nfsd, Seems to do nothing.
we dont add arbitrary patches to the gentoo sources. only fixes for important bugs get merged. if you have a problem with a fix merged into mainline sources, then mainline is the place to complain.
Ok, it's just that ubuntu has yama which can control this problem where gentoo does not. I know that ubuntu isn't upstream from gentoo but wondered if whatever their "important" patch was could be used for gentoo as well. My workaround it to debug using root which feels wrong.