]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
pid1,nspawn: raise default RLIMIT_MEMLOCK to 8M 22701/head
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Mar 2022 12:22:57 +0000 (13:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Mar 2022 17:30:24 +0000 (18:30 +0100)
commit852b62507b22c0a986032a2c9fa9cc464a5b7bd2
tree9c19e343895c408f0c377acfc73fd3c617459f1a
parenteadb4f19b3fce11fa341e9497cd518341e3c920b
pid1,nspawn: raise default RLIMIT_MEMLOCK to 8M

This mirrors a similar check in Linux kernel 5.16
(9dcc38e2813e0cd3b195940c98b181ce6ede8f20) that raised the
RLIMIT_MEMLOCK to 8M.

This change does two things: raise the default limit for nspawn
containers (where we try to mimic closely what the kernel does), and
bump it when running on old kernels which still have the lower setting.

Fixes: #16300
See: https://lwn.net/Articles/876288/
man/systemd-system.conf.xml
src/basic/def.h
src/core/main.c
src/core/system.conf.in
src/nspawn/nspawn.c