Lawrence D’Oliveiro wrote:
> So the latest libdbus update fixes some vulnerabilities
> <https://lists.freedesktop.org/archives/dbus/2026-November/018530.html>,
> including ones specific to various BSD derivatives. But I couldn’t
> quite believe my eyes when I read this:
>
> On platforms where poll() is emulated using select() (in practice
> this is believed to mean macOS and Interix), prevent a
> denial-of-service in which the system bus would crash if file
> descriptors above 1024 were polled, and harden it against
> busy-looping if an invalid file descriptor was polled.
>
> Really?? The macOS kernel does *not* provide a native poll() call, it
> has to emulate it via select()? The whole point of introducing poll()
> <https://manpages.debian.org/poll(2)> was to get around the fixed
> limit on the number and range of file descriptors
> <https://manpages.debian.org/select(2)>, and this is a waste of time
> on macOS anyway, because it still has to be implemented via select()??
>
> That is so sad ...
>
I imagine due to macOS's target demographic, the software it's used with, and the way software is written for macOS compared to other Unixes, this isn't a pressing issue for Apple. It does what it is supposed to.
dbus is a Linux ecosystem thing. If you shoehorn Linux-y ways of doing things onto platforms that are not Linux, you're going to have a bad time - this applies even in the Unix world.
--
*bonkmaykr*
Director, Programming Lead
<https://canithesis.org/>