Re: [PATCH] fmount system call

From: Christoph Hellwig
Date: Thu Apr 22 2004 - 06:47:10 EST


On Thu, Apr 22, 2004 at 12:54:24PM +0200, Miklos Szeredi wrote:
> This patch adds a new fmount() system call, which is exactly the same
> as mount(), except the second parameter (mount target) is a file
> descriptor instead of a path.
>
> The main advantage is that caller can check permissions on target
> without rename races. This can be done without fmount(), by doing
> chdir() + mount("."), but this only works for directories and uses the
> CWD which can be slightly tricky to restore.

While I like the idea of fmount I think we should use the chance to untangle
the mess the other mount paramters are.

-
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/