summaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-07-31 16:27:08 -0700
committerEric W. Biederman <ebiederm@xmission.com>2014-08-04 10:07:08 -0700
commit6ba8ed79a3cce14bd5597218fd46408b8376f8f3 (patch)
treeb9586935f31c1c66b7bb0645a028dba7a028b152 /fs/proc/base.c
parent65b38851a17472d31fec9019fc3a55b0802dab88 (diff)
downloadlinux-6ba8ed79a3cce14bd5597218fd46408b8376f8f3.tar.gz
linux-6ba8ed79a3cce14bd5597218fd46408b8376f8f3.tar.bz2
linux-6ba8ed79a3cce14bd5597218fd46408b8376f8f3.zip
proc: Have net show up under /proc/<tgid>/task/<tid>
Network namespaces are per task so it make sense for them to show up in the task directory. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 2d696b0c93bf..ed34e405c6b9 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2895,6 +2895,9 @@ static const struct pid_entry tid_base_stuff[] = {
DIR("fd", S_IRUSR|S_IXUSR, proc_fd_inode_operations, proc_fd_operations),
DIR("fdinfo", S_IRUSR|S_IXUSR, proc_fdinfo_inode_operations, proc_fdinfo_operations),
DIR("ns", S_IRUSR|S_IXUGO, proc_ns_dir_inode_operations, proc_ns_dir_operations),
+#ifdef CONFIG_NET
+ DIR("net", S_IRUGO|S_IXUGO, proc_net_inode_operations, proc_net_operations),
+#endif
REG("environ", S_IRUSR, proc_environ_operations),
INF("auxv", S_IRUSR, proc_pid_auxv),
ONE("status", S_IRUGO, proc_pid_status),