patch-2.6.6-vs1.9.0
[linux-2.6.git] / arch / s390 / kernel / ptrace.c
index 1176b4f..fa7875f 100644 (file)
@@ -680,9 +680,11 @@ sys_ptrace(long request, long 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 = do_ptrace(child, request, addr, data);
-
+out_tsk:
        put_task_struct(child);
 out:
        unlock_kernel();