path: root/fs/proc/internal.h
diff options
authorAlexey Dobriyan <>2019-02-01 14:20:01 -0800
committerLinus Torvalds <>2019-02-01 15:46:22 -0800
commit1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 (patch)
tree3873ead1c8fb221d7e93e0e68887d7502cafcd97 /fs/proc/internal.h
parent1723058eab19de741b80ac8ad25bfe2a00e02987 (diff)
proc: fix /proc/net/* after setns(2)
/proc entries under /proc/net/* can't be cached into dcache because setns(2) can change current net namespace. [ coding-style fixes] [ avoid vim miscolorization] [ write test, add dummy ->d_revalidate hook: necessary if /proc/net/* is pinned at setns time] Link: Link: Fixes: 1da4d377f943fe4194ffb9fb9c26cc58fad4dd24 ("proc: revalidate misc dentries") Signed-off-by: Alexey Dobriyan <> Reported-by: Mateusz Stępień <> Reported-by: Ahmad Fatoum <> Cc: Al Viro <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'fs/proc/internal.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
index 5185d7f6a51e..95b14196f284 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -44,6 +44,7 @@ struct proc_dir_entry {
struct completion *pde_unload_completion;
const struct inode_operations *proc_iops;
const struct file_operations *proc_fops;
+ const struct dentry_operations *proc_dops;
union {
const struct seq_operations *seq_ops;
int (*single_show)(struct seq_file *, void *);