ptrace: use fsuid, fsgid, effective creds for fs access checks
[pandora-kernel.git] / kernel / futex.c
index bbd3601..3854e75 100644 (file)
@@ -2627,7 +2627,7 @@ SYSCALL_DEFINE3(get_robust_list, int, pid,
        }
 
        ret = -EPERM;
-       if (!ptrace_may_access(p, PTRACE_MODE_READ))
+       if (!ptrace_may_access(p, PTRACE_MODE_READ_REALCREDS))
                goto err_unlock;
 
        head = p->robust_list;