login
Header Space

 
 

Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric W. Biederman <ebiederm@...>
Cc: <serge@...>, Andrew Morton <akpm@...>, David Miller <davem@...>, Alexey Dobriyan <adobriyan@...>, Linux Netdev List <netdev@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Friday, February 29, 2008 - 3:58 am

> I was thinking we might be able to hide the existence of

I have a patch that overrides the ->readdir method for /proc/.netns,
so that you can no longer read the directory contents, but you still
can guess one by guessing and opening files in it. Overriding the 
->lookup to screw one up looks like "shadowing" technics.

OTOH - consider you have the ids of existing net namespaces, but cannot 
read the contents on any but yours. So what? This information is useless
for you. So I dropped this part of a patch.


Have you ever bothered about /proc/<pid> change?


We have one now.


So, how are you going to filter the lookup? The problem I see - you have
a process that opened the /proc/.netns/X directory (he onws that namespace)
and the other one trying to do the same. The VFS layer finds the hashed
dentry corresponding to this /proc/.netns/X. The only way you can prevent
VFS from giving one to the second task is to override .d_revalidate method 
and drop that dentry....

But we've already tried to walk this way with no luck.


This is not about pid namespace, this is about net namespace and
tuning pids management to facilitate networking needs is not the right
thing to do.


Proc consists of two parts - the <pid>-s one with generated-on-the-fly
entries and the static one that is represented by proc_dir_entry tree.
Do you propose to mix those two?


Thanks.


What namespace do you mean by "non-global"?


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] Fix /proc/net in presence of net namespaces, Pavel Emelyanov, (Thu Feb 28, 11:46 am)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Thu Feb 28, 3:31 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Pavel Emelyanov, (Fri Feb 29, 3:42 am)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Sat Mar 1, 10:29 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Tue Mar 4, 6:23 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Pavel Emelyanov, (Fri Feb 29, 3:44 am)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Thu Feb 28, 6:39 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Pavel Emelyanov, (Fri Feb 29, 3:58 am)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Sat Mar 1, 10:17 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Tue Mar 4, 6:49 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Eric W. Biederman, (Sat Mar 1, 10:03 pm)
Re: [PATCH 0/2] Fix /proc/net in presence of net namespaces, Pavel Emelyanov, (Fri Feb 29, 4:16 am)
[PATCH 2/2] Make /proc/net a symlink and drop proc shadows, Pavel Emelyanov, (Thu Feb 28, 11:51 am)
[PATCH 1/2] Add an id to struct net, Pavel Emelyanov, (Thu Feb 28, 11:49 am)
speck-geostationary