patch-2.6.6-vs1.9.0
[linux-2.6.git] / arch / parisc / kernel / ptrace.c
index 514e8b5..d45980c 100644 (file)
@@ -110,6 +110,9 @@ long sys_ptrace(long request, pid_t pid, long addr, long data)
        read_unlock(&tasklist_lock);
        if (!child)
                goto out;
+       if (!vx_check(vx_task_xid(child), VX_WATCH|VX_IDENT))
+               goto out_tsk;
+
        ret = -EPERM;
        if (pid == 1)           /* no messing around with init! */
                goto out_tsk;