core: set fs.file-max sysctl to LONG_MAX rather than ULONG_MAX
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Jun 2019 08:51:25 +0000 (10:51 +0200)
committerMichael Biebl <biebl@debian.org>
Thu, 18 Mar 2021 19:59:14 +0000 (19:59 +0000)
commit0ad268736453532181d3963e598d631198d36b02
tree52fbc8a0e7c83e617904b21909fc8c088c06bcab
parent60b867d334f47ad076f08f2dd30110299f1068a7
core: set fs.file-max sysctl to LONG_MAX rather than ULONG_MAX

Since kernel 5.2 the kernel thankfully returns proper errors when we
write a value out of range to the sysctl. Which however breaks writing
ULONG_MAX to request the maximum value. Hence let's write the new
maximum value instead, LONG_MAX.

/cc @brauner

Fixes: #12803
(cherry picked from commit 6e2f78948403a4cce45b9e34311c9577c624f066)

Gbp-Pq: Name core-set-fs.file-max-sysctl-to-LONG_MAX-rather-than-ULONG.patch
src/core/main.c