On Fri, 2005-05-20 at 23:27, Miklos Szeredi wrote: > > I have enclosed a patch that allows rbinds across any two namespaces. > > NOTE: currenly bind from foriegn namespace to current namespace is > > allowed. This patch now allows: > > Note: you are accessing ->mnt_namespace without holding vfsmount_lock. I realized that just after sending the patch :( . Have corrected it in the new patch. > > Also why check current->namespace? It doesn't hurt to do > get_namespace() even if it's not strictly needed. And it would > simplify the code. however get_namespace() will chew up some extra cycles sometimes unnecessarily. I did incorporate your comment and got much simpler code. > > In fact all uses of current->namespace and check_mnt() could be > eliminated from namespace.c. The only use of ->namespace would be in > copy_namespace() and exit_namespace(). Yes. I will make this a separate patch, which I will send out soon. Will have to look at each of the cases deeply. Enclosed the simplified patch, RP