Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2021 11:18:27 -0500 (EST)
From:      Doug Denault <doug@safeport.com>
To:        Kyle Evans <kevans@freebsd.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: iocage question
Message-ID:  <alpine.BSF.2.00.2112091113380.87287@bucksport.safeport.com>
In-Reply-To: <CACNAnaGRDtugdqyDKtwFwTcyQn=6d7YVrFsr6Y-7XUvDeBV%2Bjw@mail.gmail.com>
References:  <524fc989-b859-6e1-3c30-52e7bd1c892c@safeport.com> <CACNAnaE5EVcDHV1TdeGtfM52RM3w1Q9Cc7dxApC_6hOS8_F68w@mail.gmail.com> <CACNAnaGRDtugdqyDKtwFwTcyQn=6d7YVrFsr6Y-7XUvDeBV%2Bjw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 9 Dec 2021, Kyle Evans wrote:

> On Thu, Dec 9, 2021 at 12:32 AM Kyle Evans <kevans@freebsd.org> wrote:
>>
>> On Thu, Dec 9, 2021 at 12:20 AM doug <doug@safeport.com> wrote:
>>>
>>> I'm running FreeBSD 12.2-RELEASE-p11, and py38-iocage-1.2_9. All the 12.2
>>> jails give the following error starting inetd:
>>>     inetd[nnnnn]: madvise() failed: Operation not permitted
>>>
>>
>> Right, this is expected and should be non-fatal. Jailed processes
>> can't use MADV_PROTECT (prevent out-of-swap kills) under default
>> policy and there is no allow flag for it. We could maybe improve it to
>> check if we're jailed and not complain about the error when it
>> happens, though.
>>
>
> "...  check if we're jailed ..." could be spelled as "... check if we
> received an EPERM ..."
>
Re MADV_PROTECT, thanks makes perfect sense. I wasn't able to find any info 
via archives and google. About "check if ..." I assume that is meant for 
contributors. If not, nothing like either appears in any log.

_____
Douglas Denault
http://www.safeport.com
doug@safeport.com
Voice: 301-217-9220
   Fax: 301-217-9277



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