diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2008-02-08 12:18:34 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 17:22:24 (GMT) |
commit | 488e5bc4560d0b510c1ddc451c51a6cc14e3a930 (patch) | |
tree | 0b0df343406ff47578280e01388fc997064c8aa9 /crypto/async_tx | |
parent | df5f8314ca30d6a76735748e5ba4ca9809c0f434 (diff) | |
download | linux-488e5bc4560d0b510c1ddc451c51a6cc14e3a930.tar.xz |
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 <ebiederm@xmission.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/async_tx')
0 files changed, 0 insertions, 0 deletions