RE: [PATCH] let proc net directory inodes reflect to active net namespace

2019-07-01 Thread Hallsmark, Per
directory inodes reflect to active net namespace On Tue, Jun 25, 2019 at 10:36:06AM +, Hallsmark, Per wrote: > +struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, > + struct proc_dir_entry *parent) > +{ > + struct proc_di

Re: [PATCH] let proc net directory inodes reflect to active net namespace

2019-06-29 Thread Alexey Dobriyan
On Tue, Jun 25, 2019 at 10:36:06AM +, Hallsmark, Per wrote: > +struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name, > + struct proc_dir_entry *parent) > +{ > + struct proc_dir_entry *pde; > + > + pde = proc_mkdir_data(name, 0,

[PATCH] let proc net directory inodes reflect to active net namespace

2019-06-25 Thread Hallsmark, Per
Hi, Linux kernel recently got a bugfix 1fde6f21d90f ("proc: fix /proc/net/* after setns(2)"), but unfortunately it only solves the issue for procfs net file inodes so they get correct content after a process change namespace. Checking on a v5.2-rc6 kernel : sh-4.4# sh netns_procfs_test.sh [