Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 28 Oct 2002 09:55:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 28 Oct 2002 09:55:15 -0500 Received: from phoenix.mvhi.com ([195.224.96.167]:48646 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Mon, 28 Oct 2002 09:55:15 -0500 Date: Mon, 28 Oct 2002 15:01:23 +0000 From: Christoph Hellwig To: Rob Landley Cc: Kenneth Johansson , Jeff Garzik , Andreas Haumer , linux-kernel@vger.kernel.org, willy@w.ods.org Subject: Re: rootfs exposure in /proc/mounts Message-ID: <20021028150122.A16200@infradead.org> Mail-Followup-To: Christoph Hellwig , Rob Landley , Kenneth Johansson , Jeff Garzik , Andreas Haumer , linux-kernel@vger.kernel.org, willy@w.ods.org References: <1035763409.4176.5.camel@tiger> <20021028001831.A31614@infradead.org> <200210271917.32650.landley@trommello.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200210271917.32650.landley@trommello.org>; from landley@trommello.org on Sun, Oct 27, 2002 at 08:17:32PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 734 Lines: 18 > > > On Sun, 2002-10-27 at 16:09, Christoph Hellwig wrote: > > clone(..., CLONE_NEWNS, ...) > > > > After that subsequent namespace operations will only affect your process > > and it's child processes. > > Cool. > > Question: if those processes mount something and then exit, does that > something get unmounted automatically or is this a mount point leak? Both namespaces and vfsmounts are refcounted and garbage-collected if their useage counts hits zero, so there will be no leak. - 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/