Re: [RFC][PATCH] rbind across namespaces

From: Miklos Szeredi
Date: Sat May 21 2005 - 01:30:10 EST


> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/