Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965046AbVJEAOn (ORCPT ); Tue, 4 Oct 2005 20:14:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965049AbVJEAOn (ORCPT ); Tue, 4 Oct 2005 20:14:43 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:14314 "EHLO ZenIV.linux.org.uk") by vger.kernel.org with ESMTP id S965046AbVJEAOm (ORCPT ); Tue, 4 Oct 2005 20:14:42 -0400 Date: Wed, 5 Oct 2005 01:14:41 +0100 From: Al Viro To: 7eggert@gmx.de Cc: David Leimbach , Linux Kernel Subject: Re: /etc/mtab and per-process namespaces Message-ID: <20051005001441.GR7992@ftp.linux.org.uk> References: <4TkbZ-6KJ-9@gated-at.bofh.it> <4U0uy-33E-7@gated-at.bofh.it> <4U0XK-3Gp-47@gated-at.bofh.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 21 On Tue, Oct 04, 2005 at 11:20:12PM +0200, Bodo Eggert wrote: > Al Viro wrote: > > > 4) If you insist on having /etc/mtab the same file in all namespaces, > > you obviously will have its contents not matching at least some > > of them. Either have it separate in each namespace where you want > > to see it, or simply use /proc/self/mounts instead. > > So /proc/mounts should be a symlink to /proc/self/mounts? ; ls -l /proc/mounts lrwxrwxrwx 1 root root 11 Oct 4 20:13 /proc/mounts -> self/mounts ; like that, perhaps? IOW, it's been done that way for almost 4 years already... - 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/