Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2013 21:37:31 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Jamie Gritton <jamie@FreeBSD.org>
Cc:        freebsd-jail@FreeBSD.org
Subject:   Re: automatic garbage collection of stuff mounted (etc.) by jailed root
Message-ID:  <5175917B.4010504@quip.cz>
In-Reply-To: <51758192.2050300@FreeBSD.org>
References:  <20130422091711.GA3115@dft-labs.eu> <517553B0.6010602@FreeBSD.org> <517575BF.8020305@quip.cz> <51758192.2050300@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jamie Gritton wrote:
> On 04/22/13 11:39, Miroslav Lachman wrote:
>> 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
>
> Ah, I see the difference. Yes, that's only for mounts in the jail.conf.
> For mounts done by the jail itself, I guess we would go off the mount
> record's credential. So is this something you expect to be happening
> entirely in the kernel?

I don't know what's the right place for this, but I am sure there should 
be something to clear these mounts made inside jails. Otherwise there 
will be unwanted leftovers after a jail restart / destroy.

Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5175917B.4010504>