]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/futex_compat.c
pid namespaces: changes to show virtual ids to user
[linux-2.6-omap-h63xx.git] / kernel / futex_compat.c
index 2c2e2954b713b2681a5bf120c0097cb2c2affc8c..cc098e1de960cfc0fc36747146d7b3f121677e25 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/linkage.h>
 #include <linux/compat.h>
+#include <linux/nsproxy.h>
 #include <linux/futex.h>
 
 #include <asm/uaccess.h>
@@ -124,7 +125,8 @@ compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
 
                ret = -ESRCH;
                read_lock(&tasklist_lock);
-               p = find_task_by_pid(pid);
+               p = find_task_by_pid_ns(pid,
+                               current->nsproxy->pid_ns);
                if (!p)
                        goto err_unlock;
                ret = -EPERM;