Re: [PATCH] namespace.c: fix bind mount from foreign namespace

From: Miklos Szeredi
Date: Mon May 16 2005 - 04:02:50 EST


> A vfsmount can only be in a single namespace at a time, since each
> mount tree is rooted in a single namespace. So what you are saying is
> impossible.

To be more precise a vfsmount can only be in _at_ _most_ one
namespace. When it is detached from a mount tree, it's no longer in
_any_ namespace.

There even seems to be some confusion about that in namespace.c. I
think mnt_namespace should be set to NULL in detach_mnt() instead of
__put_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/