sd-varlink: log about client uid that hit connection limit

This commit is contained in:
Mike Yuan
2026-02-16 09:44:55 +01:00
parent e2fb041564
commit 3482e4dd70
+2 -2
View File
@@ -3547,8 +3547,8 @@ static int validate_connection(sd_varlink_server *server, const struct ucred *uc
c = PTR_TO_UINT(hashmap_get(server->by_uid, UID_TO_PTR(ucred->uid)));
if (c >= server->connections_per_uid_max) {
varlink_server_log(server, "Per-UID connection limit of %u reached, refusing.",
server->connections_per_uid_max);
varlink_server_log(server, "Per-UID connection limit of %u for '" UID_FMT "' reached, refusing.",
server->connections_per_uid_max, ucred->uid);
return 0;
}
}