Re: [RFC][PATCH] rbind across namespaces

Miklos Szeredi
2005-05-21T06:27:55Z

> 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.

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.

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().

Miklos