setrlimit() failed: not locking into RAM
Linux containers don't allow RLIMIT_CORE to be set back to RLIM_INFINITY if we set the limit to zero. Even if root. This warning should be a DEBUG warning, and not a WARN.
https://gitlab.com/NTPsec/ntpsec/-/issues/new?issue%5Bassignee_id%5D=&issue%5Bmilestone_id%5D=
Proposed code:
if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0)
msyslog(LOG_DEBUG, "INIT: setrlimit(RLIMIT_CORE, [%lld, %lld]) failed", (long long)rlim.rlim_cur, (long long)rlim.rlim_max);
else
Edited by William Cody Ardoin