aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_net.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2008-02-08 12:18:34 +0000
committerLinus Torvalds <[email protected]>2008-02-08 17:22:24 +0000
commit488e5bc4560d0b510c1ddc451c51a6cc14e3a930 (patch)
tree0b0df343406ff47578280e01388fc997064c8aa9 /fs/proc/proc_net.c
parentproc: seqfile convert proc_pid_status to properly handle pid namespaces (diff)
downloadkernel-488e5bc4560d0b510c1ddc451c51a6cc14e3a930.tar.gz
kernel-488e5bc4560d0b510c1ddc451c51a6cc14e3a930.zip
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 <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Alexey Dobriyan <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/proc_net.c')
0 files changed, 0 insertions, 0 deletions