[GH-ISSUE #955] Spoof D-Bus machine-id #649

Closed
opened 2026-05-05 06:21:11 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @robotanarchy on GitHub (Dec 4, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/955

Hi there,

I've noticed that Tor Browser on Arch Linux requires /etc/machine-id to be present, or otherwise it will segfault.
D-Bus seems to generate this ID on the first installation and keeps it forever, to uniquely identify the machine.
http://0pointer.de/public/systemd-man/machine-id.html

How would I spoof that ID with a firejail profile in combination with private-etc?

Thanks for making firejail!

Originally created by @robotanarchy on GitHub (Dec 4, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/955 Hi there, I've noticed that Tor Browser on Arch Linux requires `/etc/machine-id` to be present, or otherwise it will segfault. D-Bus seems to generate this ID on the first installation and keeps it forever, to uniquely identify the machine. http://0pointer.de/public/systemd-man/machine-id.html How would I spoof that ID with a firejail profile in combination with `private-etc`? Thanks for making firejail!
gitea-mirror 2026-05-05 06:21:11 -06:00
Author
Owner

@valoq commented on GitHub (Dec 4, 2016):

Not sure how to do that with firejail.

However please report that issue to the tor people as well.
This sounds like a potentially serious flaw.

<!-- gh-comment-id:264702420 --> @valoq commented on GitHub (Dec 4, 2016): Not sure how to do that with firejail. However please report that issue to the tor people as well. This sounds like a potentially serious flaw.
Author
Owner

@robotanarchy commented on GitHub (Dec 4, 2016):

Tor Bugreport: https://trac.torproject.org/projects/tor/ticket/20884

<!-- gh-comment-id:264703648 --> @robotanarchy commented on GitHub (Dec 4, 2016): Tor Bugreport: https://trac.torproject.org/projects/tor/ticket/20884
Author
Owner

@netblue30 commented on GitHub (Dec 4, 2016):

I'll put something in, and I'll ask you to try it. Will it still crash if we just put a different random number there?

<!-- gh-comment-id:264707169 --> @netblue30 commented on GitHub (Dec 4, 2016): I'll put something in, and I'll ask you to try it. Will it still crash if we just put a different random number there?
Author
Owner

@robotanarchy commented on GitHub (Dec 4, 2016):

Okay, let's do that. It did not crash when I put a different number in the file.

<!-- gh-comment-id:264710938 --> @robotanarchy commented on GitHub (Dec 4, 2016): Okay, let's do that. It did not crash when I put a different number in the file.
Author
Owner

@netblue30 commented on GitHub (Dec 5, 2016):

All set, give it a try. A new ID is generated by default. If you need to use the real machine-id in the sandbox, you would need to add --machine-id switch.

<!-- gh-comment-id:264852083 --> @netblue30 commented on GitHub (Dec 5, 2016): All set, give it a try. A new ID is generated by default. If you need to use the real machine-id in the sandbox, you would need to add --machine-id switch.
Author
Owner

@robotanarchy commented on GitHub (Dec 6, 2016):

Tested with the git version and works as expected - I get a random machine id every time I start the profile (verified by typing file:///etc/machine-id into the browser).
Thanks for the quick implementation!

<!-- gh-comment-id:265289925 --> @robotanarchy commented on GitHub (Dec 6, 2016): Tested with the git version and works as expected - I get a random machine id every time I start the profile (verified by typing file:///etc/machine-id into the browser). Thanks for the quick implementation!
Author
Owner

@netblue30 commented on GitHub (Dec 8, 2016):

Cool, thanks.

<!-- gh-comment-id:265749154 --> @netblue30 commented on GitHub (Dec 8, 2016): Cool, thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#649
No description provided.