From: Eric W. Biederman Date: Fri, 8 Feb 2008 12:18:34 +0000 (-0800) Subject: proc: proper pidns handling for /proc/self X-Git-Tag: v2.6.25-rc1~262 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=488e5bc4560d0b510c1ddc451c51a6cc14e3a930;p=pandora-kernel.git proc: proper pidns handling for /proc/self Currently if you access a /proc that is not mounted with your processes current pid namespace /proc/self will point at a completely random task. This patch fixes /proc/self to point to the current process if it is available in the particular mount of /proc or to return -ENOENT if the current process is not visible. Signed-off-by: Eric W. Biederman Cc: Pavel Emelyanov Cc: Alexey Dobriyan Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed