Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3
+3
fs/proc/base.c
··· 2895 2895 DIR("fd", S_IRUSR|S_IXUSR, proc_fd_inode_operations, proc_fd_operations), 2896 2896 DIR("fdinfo", S_IRUSR|S_IXUSR, proc_fdinfo_inode_operations, proc_fdinfo_operations), 2897 2897 DIR("ns", S_IRUSR|S_IXUGO, proc_ns_dir_inode_operations, proc_ns_dir_operations), 2898 + #ifdef CONFIG_NET 2899 + DIR("net", S_IRUGO|S_IXUGO, proc_net_inode_operations, proc_net_operations), 2900 + #endif 2898 2901 REG("environ", S_IRUSR, proc_environ_operations), 2899 2902 INF("auxv", S_IRUSR, proc_pid_auxv), 2900 2903 ONE("status", S_IRUGO, proc_pid_status),