Commit 05cb619f authored by Simon McVittie's avatar Simon McVittie

Log to syslog when pending_fd_timeout is exceeded

This is either a denial-of-service attempt, a pathological performance
problem or a dbus-daemon bug. Sysadmins should be told about any of

[smcv: add units to timeout: it is in milliseconds]
Signed-off-by: default avatarSimon McVittie <>
parent 3bc74092
......@@ -671,6 +671,18 @@ static dbus_bool_t
pending_unix_fds_timeout_cb (void *data)
DBusConnection *connection = data;
BusConnectionData *d = BUS_CONNECTION_DATA (connection);
int limit;
_dbus_assert (d != NULL);
limit = bus_context_get_pending_fd_timeout (d->connections->context);
bus_context_log (d->connections->context, DBUS_SYSTEM_LOG_WARNING,
"Connection \"%s\" (%s) has had Unix fds pending for too long, "
"closing it (pending_fd_timeout=%d ms)",
d->name != NULL ? d->name : "(null)",
bus_connection_get_loginfo (connection),
dbus_connection_close (connection);
return TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment