Re: iocage question

From: Doug Denault <doug_at_safeport.com>
Date: Thu, 09 Dec 2021 16:18:27 UTC
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