Working around platform limitations on GetConnectionUnixProcessID?

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sat Apr 19 23:00:52 UTC 2025


On Sun, 20 Apr 2025 00:37:50 +0200, René J.V. Bertin wrote:

> Darwin is some the userland from some BSD flavour on top of a Mach
> kernel. That's where the issue could be.

Some important system update got lost in the maze of different forks
and parallel reinventions in the BSD world?

> Adding a method to return the own PID was a piece of cake in a
> Qt-based application. Reading the value from the returned `(a{sv})`
> container in a GLib-based application was a lot more trial-and-error
> work...

Are you *trusting* the other end to return correct information about
itself? Because the whole point of SO_PEERCRED is that the information
comes from the kernel, so it is not possible for the other end to fake
it.


More information about the dbus mailing list