Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750999Ab0FDECA (ORCPT ); Fri, 4 Jun 2010 00:02:00 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:52811 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732Ab0FDEB7 (ORCPT ); Fri, 4 Jun 2010 00:01:59 -0400 Date: Fri, 4 Jun 2010 05:01:58 +0100 From: Al Viro To: Daniel Lezcano Cc: Linux Kernel Mailing List Subject: Re: mount namespace : who mounted what ? Message-ID: <20100604040158.GZ31073@ZenIV.linux.org.uk> References: <4C080ABD.5040902@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C080ABD.5040902@free.fr> User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 822 Lines: 19 On Thu, Jun 03, 2010 at 10:04:13PM +0200, Daniel Lezcano wrote: > Hi all, > > I was wondering, in a new mount namespace, if it is possible to know > which mount points were inherited and which were mounted in a new > namespace ? > > I looked at /proc//mountinfo and investigated a bit on the > mount id, but this one is not reliable as it changes in the new > namespace. The /proc//mounts file shows all the mount points > visible for the process inherited or not. No more than "had it been this process that mmaped that area or was it inherited from the parent?" -- 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/