--- zzzz-none-000/linux-2.6.19.2/arch/sparc64/kernel/ptrace.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/arch/sparc64/kernel/ptrace.c 2007-01-19 14:42:56.000000000 +0000 @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -213,6 +214,11 @@ goto out; } + if (gr_handle_ptrace(child, (long)request)) { + pt_error_return(regs, EPERM); + goto out_tsk; + } + if ((current->personality == PER_SUNOS && request == PTRACE_SUNATTACH) || (current->personality != PER_SUNOS && request == PTRACE_ATTACH)) { if (ptrace_attach(child)) {