From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ram Subject: Re: [PATCH] private mounts Date: Mon, 25 Apr 2005 09:18:43 -0700 Message-ID: <1114445923.4480.94.camel@localhost> References: <3WVU1-2GE-7@gated-at.bofh.it> <3WWn1-2ZC-5@gated-at.bofh.it> <3WWn1-2ZC-3@gated-at.bofh.it> <3WWwR-3hT-35@gated-at.bofh.it> <3WWwU-3hT-49@gated-at.bofh.it> <3WWGj-3nm-3@gated-at.bofh.it> <3WWQ9-3uA-15@gated-at.bofh.it> <3WWZG-3AC-7@gated-at.bofh.it> <3X630-2qD-21@gated-at.bofh.it> <3X8HA-4IH-15@gated-at.bofh.it> <3Xagd-5Wb-1@gated-at.bofh.it> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Jan Hudec , Miklos Szeredi , viro@parcelfarce.linux.theplanet.co.uk, hch@infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton Return-path: Received: from e32.co.us.ibm.com ([32.97.110.130]:20187 "EHLO e32.co.us.ibm.com") by vger.kernel.org with ESMTP id S262661AbVDYQSs (ORCPT ); Mon, 25 Apr 2005 12:18:48 -0400 To: 7eggert@gmx.de In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 2005-04-25 at 08:17, Bodo Eggert wrote: > Jan Hudec wrote: > > On Mon, Apr 25, 2005 at 11:58:50 +0200, Miklos Szeredi wrote: > > >> How do you bind mount it from a different namespace? You _do_ need > >> bind mount, since a new mount might require password input, etc... > > > > Yes, I would need one thing from kernel. That one thing would be to > > mount bind a directory handle, instead of path. > > > > And if you wonder how I get the handle, that's what SCM_RIGHTS message > > of unix-domain sockets is for. > > You'll need something to get the FD from. What will that be if the mount > was done from a subshell of the midnight commander run in a screen session? > > What about X sessions? Open a xterm, do the mount and then do what to get > the mount working for the programs run from the window manager? > Relogin? The xterm with the mount will be gone. > Use a daemon to keep an additional reference to the namespace? That's UGLY. > > With attachable namespaces, the whole thing should be as simple as > (pseudocode) > mknamespace -p users/$UID # (like mkdir -p) > setnamespace users/$UID # (like cd) > > Optionally, the namespaces and their private mounts might be scheduled to > be removed if the last user is gone, or they need to be persistent, > depending on the applicaton (e.g. ssh used as rexec or shared mounts). Agreed. I guess for this thread to make any progress, we need a set of coherent requirements from FUSE team. RP