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

next in thread | previous in thread | raw e-mail | index | archive | help
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?

- Jamie



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