'Machine ID' underspecified?

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sun Dec 6 00:03:07 UTC 2020


On Sat, 05 Dec 2020 15:34:31 +0000, Thomas Kluyver wrote:

> The standard org.freedesktop.DBus.Peer interface
> (https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-peer
> ) defines a GetMachineId method. The spec says that this returns a
> UUID which "must be the same for all processes on a single system at
> least until that system next reboots."
>
> ...
> 
> I looked into the code for the reference implementation. On Unix, it
> gets the ID from a compile-time configurable file
> (/var/lib/dbus/machine-id on my system) with a hardcoded fallback to
> /etc/machine-id:

Seems like libdbus is going further than the spec requires, by defining
a value that persists across reboots. That doesn’t seem to be necessary
for the example use cases described in the spec.


More information about the dbus mailing list