From: Al Viro Subject: Re: [RFC][2.6 patch] Allow creation of new namespaces during mount system call Date: Wed, 20 Apr 2005 21:51:52 +0100 Message-ID: <20050420205152.GU13052@parcelfarce.linux.theplanet.co.uk> References: <1114015886.4920.120.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxram@us.ibm.com, Eric Van Hensbergen , Jamie Lokier , linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:32201 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S261809AbVDTUvs (ORCPT ); Wed, 20 Apr 2005 16:51:48 -0400 To: Bryan Henderson Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, Apr 20, 2005 at 11:57:23AM -0700, Bryan Henderson wrote: > - When you mount(), you say whether the names should be visible by > default or not. It takes system privilege to make them visible by > default, but an ordinary user can mount a willing filesystem over a > directory he's permitted to modify unconditionally, invisible by default That assumes that everyone has the same stuff in the same places. I.e. that there is a universal tree with different subset hidden from different processes. But that is obviously a wrong approach - e.g. it loses ability to bind different stuff on the same place in different namespaces. _And_ it doesn't work accross the host boundary for even more obvious reasons (/bin/sh is going to be a different binary on i386, alpha and sparc boxen, no matter what). IOW, notion that every directory has its "real" absolute pathname (and that's what your approach boils down to) won't match the reality anyway.