Skip to content

Commit

Permalink
proc: Point /proc/net at /proc/thread-self/net instead of /proc/self/net
Browse files Browse the repository at this point in the history
In oddball cases where the thread has a different network namespace
than the primary thread group leader or more likely in cases where
the thread remains and the thread group leader has exited this
ensures that /proc/net continues to work.

This should not cause any problems but if it does this patch can just
be reverted.

Signed-off-by: "Eric W. Biederman" <[email protected]>
  • Loading branch information
ebiederm committed Aug 4, 2014
1 parent 0097875 commit e813244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/proc_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static struct pernet_operations __net_initdata proc_net_ns_ops = {

int __init proc_net_init(void)
{
proc_symlink("net", NULL, "self/net");
proc_symlink("net", NULL, "thread-self/net");

return register_pernet_subsys(&proc_net_ns_ops);
}

0 comments on commit e813244

Please sign in to comment.