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)
committerAdrian Bunk <bunk@debian.org>
Thu, 30 Mar 2023 19:32:31 +0000 (20:32 +0100)
commit15c39c556e0eafb46a85df7bb1e40cac9dfda7b3
treef092df755a46a9c89ec0244786d486a31971db8c
parent66e2a5b931dc9532fa898374026e4beb171d3730
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