The location of machine-id is set to /etc/machine-id (systemd-ism), so
change it to what is expected on FreeBSD, /var/lib/dbus/machine-id.
PR: 247175
Submitted by: Samy Mahmoudi <samy.mahmoudi@gmail.com>
Reported by:
Differential D26085
www/chromium: Patch location of machine-id jrm on Aug 17 2020, 4:15 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Reading https://www.freedesktop.org/software/systemd/man/machine-id.html , it seems like we should either write /etc/machine-id directly, in place of or addition to the /var location; OR, symlink /etc/machine-id to the /var location. Patching software to look in a non-canonical location is going to be more error-prone than conforming. Comment Actions I guess you could let dbus create a symlink, but why does Chromium need this id? The comment indicates it is transmitted. Isn't that a privacy violation? Comment Actions The comment also reads:
Hashes are one-way functions. It's certainly true hashing is not always sufficient to make an input private; for example, very short keys like phone numbers or short passwords can be reversed by just brute-forcing the key space. Machineids are 128-bit uuids, though. Brute-forcing the entire 2^128 space is not feasible. It seems like systemd adopted the dbus file and "promoted" it into /etc, if I'm reading the description right. So applications may look in both locations, depending on when they were written and against what OS. I guess I think we should write both, or symlink one to the other. Comment Actions From the document that Conrad linked to, it sounds like Chromium is doing what is intended. What they are using the unique id for is another question.
It sounds like the link is intended to be from /etc/machine-id pointing to /var/lib/dbus/.
Comment Actions We now have an rc script that generates /var/db/machine-id and an /etc/machine-id symlink is created pointing to /var/db/machine-id. |