Ultimately, the problem is much bigger than /etc/machine-id since there are dozens of hardware IDs on any PC that can be used by malicious telemetry to silently to uniquely identify and track you, and the only solution to this problem currently is to make sure you really trust any software you use.
Systemd, in particular, acts a lot like malware for Linux because if you try to reset your machine-id a long list of stuff that breaks in in it. You could make a cron script to reset /etc/machine-id every day, but machine-id is so deep in the stack that you’d also have to reboot to ensure it’s updated.


Flatpak provides access to
/etc/machine-idby default.flatpak run org.torproject.torbrowser-launcher && TOR_PROCESS_ID=$(flatpak ps | grep tor | cut -f 1 | head -n 1) && clear && flatpak enter $TOR_PROCESS_ID cat /etc/machine-idhttps://docs.flatpak.org/en/latest/sandbox-permissions.html
Good call, I double checked and you seem to be right.
I found the github issue tracking this: https://github.com/flatpak/flatpak/issues/4311
Just goes to show how much deeper these problems are than they appear on the surface. Design decisions from 15+ years ago haunting software of today
P.S. You can shorten your command to simply
flatpak run --command=bash org.torproject.torbrowser-launcher -c "cat /etc/machine-id"I use
--command=basha lot when I want to just enter a shell inside the flatpak environment