From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Hudec Subject: Re: [PATCH] private mounts Date: Tue, 26 Apr 2005 10:58:18 +0200 Message-ID: <20050426085817.GA9131@vagabond> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Cc: 7eggert@gmx.de, akpm@osdl.org, hch@infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi , viro@parcelfarce.linux.theplanet.co.uk Return-path: Received: from cimice4.lam.cz ([212.71.168.94]:43433 "EHLO vagabond.light.src") by vger.kernel.org with ESMTP id S261401AbVDZI7B (ORCPT ); Tue, 26 Apr 2005 04:59:01 -0400 To: Bryan Henderson Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2005 at 12:02:43 -0700, Bryan Henderson wrote: > >mknamespace -p users/$UID # (like mkdir -p) > >setnamespace users/$UID # (like cd) > ^^^^^^^^ >=20 > You realize that 'cd' is a shell command, and has to be, I hope. That=20 > little fact has thrown a wrench into many of the ideas in this thread. You don't want to have such command, really! What you want is a PAM module, that looks whether there is already a session for that user and switches to it's namespace, if it does. Remember that it's namespace - it can be first created, then attached and then populated with mounts. ---------------------------------------------------------------------------= ---- Jan 'Bulb' Hudec --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCbgKpRel1vVwhjGURAvcCAJ9uTr5iy8uvbR1xwY0a7xMC/Qv51wCfVRsm QVgUu6PUrJCwZDYQ1YLvkjQ= =519K -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--