lkml.org 
[lkml]   [2005]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] rbind across namespaces
Miklos Szeredi wrote:
>>So you'd say 'mount /dev/foo /proc/self/fd/4' if 4 was an fd pointing to
>>a directory in another namespace?
>>
>>That does require proc_check_root be removed. :\
>
>
> Or just make an exception to self?
>
> proc_check_root() could begin with:
>
> if (current == proc_task(inode))
> return 0;
>
> For all other tasks it would still be effective.
>

Yes, I think something like that is workable :)

(we still have to fix up all the namespace->sem locking. I have yet to
review Ram's patch.)

Mike Waychison
-
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-24 20:10    [W:0.464 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site