Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750732AbVJVRB0 (ORCPT ); Sat, 22 Oct 2005 13:01:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750735AbVJVRB0 (ORCPT ); Sat, 22 Oct 2005 13:01:26 -0400 Received: from dsl092-053-140.phl1.dsl.speakeasy.net ([66.92.53.140]:12688 "EHLO grelber.thyrsus.com") by vger.kernel.org with ESMTP id S1750732AbVJVRBZ (ORCPT ); Sat, 22 Oct 2005 13:01:25 -0400 From: Rob Landley Organization: Boundaries Unlimited To: David Leimbach Subject: Re: /etc/mtab and per-process namespaces Date: Wed, 19 Oct 2005 22:42:03 -0500 User-Agent: KMail/1.8 Cc: Linux Kernel References: <3e1162e60510021508r6ef8e802p9f01f40fcf62faae@mail.gmail.com> In-Reply-To: <3e1162e60510021508r6ef8e802p9f01f40fcf62faae@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510192242.03309.rob@landley.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1087 Lines: 22 On Sunday 02 October 2005 17:08, David Leimbach wrote: > I've been just playing around with the v9fs work and private > namespaces from yesterday's [October 1, 2005] top of tree from Linus' > git archive and I was looking at /etc/mtab's reaction to having > multiple namespaces with bind mounts. Oh you don't need namespaces to hork mtab. Do a mount from a chroot environment. Or try to use --bind or --move mounts (at all) and watch it beg for mercy. (I accidentally ran UserMode Linux as root once, using a hostfs root filesystem to borrow the existing Linux's root filesystem, and its' mounts edited the parent system's /etc/mtab. Yeah, that was user error on my part, but it's also the _only_ gotcha I've found when doing that.) /etc/mtab is simply brittle. Personally, on systems I build, I ln -s /proc/mounts /etc/mtab Rob - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/