See D47832 for some more background.
I cannot see a good reason to continue ignoring mismatching UIDs when
binding to INADDR_ANY. Looking at the sdr.V2.4a7n sources (mentioned in
bugzilla PR 7713), there is a CANT_MCAST_BIND hack wherein the
application binds to INADDR_ANY instead of a multicast address, but
CANT_MCAST_BIND isn't defined for FreeBSD builds, and these sources date
from the 90s.
It seems unlikely that we still have a usecase for allowing sockets from
different UIDs to bind to the same port. And, as noted in D47832,
applications like sdr would have been broken by the inverted
SO_REUSEPORT check removed in that revision. Let's break compatibility
and simply disallow this case outright.
Sponsored by: Klara, Inc.
Sponsored by: Stormshield