From owner-freebsd-jail@FreeBSD.ORG Mon Apr 22 17:48:56 2013 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 34FA420C; Mon, 22 Apr 2013 17:48:56 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id E971A193E; Mon, 22 Apr 2013 17:48:55 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 971BE28426; Mon, 22 Apr 2013 19:39:14 +0200 (CEST) Received: from [192.168.1.2] (ip-89-177-49-222.net.upcbroadband.cz [89.177.49.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id E92B828423; Mon, 22 Apr 2013 19:39:12 +0200 (CEST) Message-ID: <517575BF.8020305@quip.cz> Date: Mon, 22 Apr 2013 19:39:11 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Jamie Gritton Subject: Re: automatic garbage collection of stuff mounted (etc.) by jailed root References: <20130422091711.GA3115@dft-labs.eu> <517553B0.6010602@FreeBSD.org> In-Reply-To: <517553B0.6010602@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@FreeBSD.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2013 17:48:56 -0000 Jamie Gritton wrote: > On 04/22/13 03:17, Mateusz Guzik wrote: [...] >> Again, the goal is to have jails clean up automatically after anything >> jailed root was permitted to do. >> >> Thoughts? > > This already happens when jails are created using a jail.conf file. Any > mounts there are unmounted as part of the jail removal process. Just > recently I fixed it to properly do this unmounting in reverse order. Do you mean mounts defined in jail.conf or all mounts manually done by root user in jail? Miroslav Lachman