Re: [PATCH] private mounts
From: Olivier Galibert
Date: Sat Apr 30 2005 - 13:22:16 EST
On Sat, Apr 30, 2005 at 07:07:56PM +0200, Miklos Szeredi wrote:
> > But you don't need a new system call to bind an fd.
> >
> > "mount --bind /proc/self/fd/N mount_point" works, try it.
>
> Ahh, yes :)
>
> Still proc_check_root() has to be relaxed, to allow dereferencing link
> under a different namespace. Maybe the check should be skipped for
> capable(CAP_SYS_ADMIN) or similar.
>
> What do people think about that?
To me it looks like an atrocious hack that works only because of the
way the implementation is done and not really by design. A well
defined interface where you want to do is explicitely said is way less
annoying long term. I don't know what the right approach would be
(join <ns> vs. exec in <ns> vs. clone in <ns>) or even what a
namespace reference should look like (fd, pid, something else), and
probably only Al has a good idea of that. Al, you've been quite
silent here. What do you think the right method/interface would be to
start an interactive shell in a pre-existing different namespace?
OG.
-
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/