]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/futex_compat.c
CRED: Separate task security context from task_struct
[linux-2.6-omap-h63xx.git] / kernel / futex_compat.c
index 3254d4e41e885bf37ce029ce95184f7ed4a7f59f..2c3fd5ed34f583c8ba528d21812139227907c5e2 100644 (file)
@@ -151,8 +151,9 @@ compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
                if (!p)
                        goto err_unlock;
                ret = -EPERM;
-               if (euid != p->euid && euid != p->uid &&
-                               !capable(CAP_SYS_PTRACE))
+               if (euid != p->cred->euid &&
+                   euid != p->cred->uid &&
+                   !capable(CAP_SYS_PTRACE))
                        goto err_unlock;
                head = p->compat_robust_list;
                read_unlock(&tasklist_lock);