Skip to content

Rollup of fixes#429

Open
dvdhrm wants to merge 3 commits intobus1:mainfrom
dvdhrm:pr/fix
Open

Rollup of fixes#429
dvdhrm wants to merge 3 commits intobus1:mainfrom
dvdhrm:pr/fix

Conversation

@dvdhrm
Copy link
Member

@dvdhrm dvdhrm commented Feb 20, 2026

3 unrelated fixes. See each commit message for details.

When using connect-policies based on GIDs, the launcher incorrectly
used an uninitialized UID as key, rather than the stored GID. Fix this
to properly use the GID defined in the XML configuration.

This effectively means that connect-policies based on GIDs never worked.
But luckily, no distributor makes use of those, so this should have a
negligible impact.

Reported-by: Pavel Kohout, Aisle Research, Aisle.com
Signed-off-by: David Rheinsberg <david@readahead.eu>
Ensure that truncated log messages are properly recovered from, rather
than forwarding their error to the caller.

The log infrastructure already has sufficient handling of dropped log
messages, so make use of it for truncated messages as well.

Note that under special circumstances, clients can currently trigger
truncated log messages and thus terminate the broker, even though the
log instances are marked as `lossy`. However, this requires clients to
trigger a log message that got truncated. There is no known way how
unprivileged clients can do this, though. However, clients with access
to wildcard name-ownership can currently claim more names than a log
message can hold, and thus trigger log messages that will be truncated.

Since this is limited to privileged clients, the impact of this should
be low to negligible.

Reported-by: Pavel Kohout, Aisle Research, Aisle.com
Signed-off-by: David Rheinsberg <david@readahead.eu>
Ensure that the sockopt-test passes addresses as `struct sockaddr *`
rather than the typed `struct sockaddr_un*`, to honor the prototypes of
the respective socket syscalls.

Reported-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Signed-off-by: David Rheinsberg <david@readahead.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant