ptrace: use fsuid, fsgid, effective creds for fs access checks
[pandora-kernel.git] / kernel / futex_compat.c
index a9642d5..e07b64b 100644 (file)
@@ -154,7 +154,7 @@ compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
        }
 
        ret = -EPERM;
-       if (!ptrace_may_access(p, PTRACE_MODE_READ))
+       if (!ptrace_may_access(p, PTRACE_MODE_READ_REALCREDS))
                goto err_unlock;
 
        head = p->compat_robust_list;