lkml.org 
[lkml]   [2005]   [May]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] rbind across namespaces
FromMiklos Szeredi <>
DateSat, 21 May 2005 08:27:31 +0200
> 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-21 08:32    [from the cache]
©2003-2008