On Fri, Feb 12, 2016, at 04:40, Axel Rau wrote:
> Hi Mark,
> 
> After getting „Internal error in allocate“, I changed the login group of
> aox to daemon, which gives aox 128M instead of 64k of memorylocked limit.
> Do you care to adjust the login group, in case your port creates user
> aox?
> 

I am curious how you managed to trigger this. Are you starting aox via
the rc script? The FreeBSD rc script automatically sets the login class
to "daemon":

from /etc/rc.subr:

#       ${name}_login_class n   Login class to use, else "daemon".

later:

            _prepend=\$${name}_prepend 
            _login_class=\${${name}_login_class:-daemon}


and later:

                                        # Prepend default limits
                        _doit="limits -C $_login_class $_doit"


...so it prepends the "limits -C daemon" before the command that starts
the daemon.

Arnt, this is not an issue in aox. It's a BSD mechanism to prevent abuse
of mlock / cause denial of service by unprivileged users.





-- 
  Mark Felder
  [email protected]

Reply via email to