projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b3885
)
proc: Have net show up under /proc/<tgid>/task/<tid>
author
Eric W. Biederman
<ebiederm@xmission.com>
Thu, 31 Jul 2014 23:27:08 +0000
(16:27 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Mon, 4 Aug 2014 17:07:08 +0000
(10:07 -0700)
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>
fs/proc/base.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 2d696b0c93bfbec6f1dd73ff4a8f71c9da569e4d..ed34e405c6b976865538050e185aec31bc6e6474 100644
(file)
--- 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),