]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-varlink: scale down the limit of connections per UID to 128
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 10 Apr 2026 16:32:33 +0000 (18:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 12 Apr 2026 11:57:39 +0000 (13:57 +0200)
1024 connections per UID is unnecessarily generous, so let's scale this
down a bit. D-Bus defaults to 256 connections per UID, but let's be even
more conservative and go with 128.

src/libsystemd/sd-varlink/sd-varlink.c

index fdcbcff0e1f060a37ea9774437176eda3ba8eaef..372ede755b5bb131cadd033b481252e699b84165 100644 (file)
@@ -39,7 +39,7 @@
 #include "varlink-org.varlink.service.h"
 
 #define VARLINK_DEFAULT_CONNECTIONS_MAX 4096U
-#define VARLINK_DEFAULT_CONNECTIONS_PER_UID_MAX 1024U
+#define VARLINK_DEFAULT_CONNECTIONS_PER_UID_MAX 128U
 
 #define VARLINK_DEFAULT_TIMEOUT_USEC (45U*USEC_PER_SEC)
 #define VARLINK_COLLECT_MAX 1024U