mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4190] brave profile blocks Tor #2574
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2574
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @loveshack on GitHub (Apr 13, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4190
The Brave browser can open windows with Tor, but that's blocked by the firejail brave profile -- it just hangs trying to connect. (It's OK for me without the profile, of course.)
I'm confused because it's presumably due to this (repeating) error
despite brave.profile containing
I'm happy to take suggestions for debugging if necessary.
Versions: firejail 0.9.64.4 (but it doesn't look as though there's any relevant profile change since) and brave 1.22.71 on Debian 10.
@ghost commented on GitHub (Apr 13, 2021):
Might be the
apparmoroption in /etc/firejail/chromium-common.profile. A quick and dirty check would be addingignore apparmorto achromium-common.localfile. Or in abrave.localfile if you want to keep any other chromium-based browsers you might use with an intact profile.If the test confirms it is AppArmor that's the culprit, we can assist in designing a proper way to proceed that doesn't rely on disabling the apparmor option. That would involve making changes to your /etc/apparmor.d/local/firejail-default cfr. what the
torbrowser-launcher.profileadvises when you've got that installed under your ${HOME}. But let's confirm if disabling apparmor indeed makes TOR happy before diving into that.@ghost commented on GitHub (Apr 14, 2021):
UPDATE:
In the mean time I've installed Brave and can reproduce this issue. As I suspected the
apparmoroption in the included chromium-common.profile is responsible for blocking access to tor. I'll prepare a PR to fix this but until that gets into a new release on your Debian box here's what you can do right now. In fact, you have two options: (1) either add abrave.localfile containingignore apparmorOR (2) allow access to the tor path used by Brave in /etc/apparmor.d/local/firejail-default. The latter route assumes you have a fully configured and enabled AppArmor setup on your machine - consult the Debian wiki for that if you need to double-check stuff.If you decide to go for this second option, compare the below /etc/apparmor.d/local/firejail-default example. You might already have extra rules in there. Just make sure to add a line for the brave path (uncommented). Once that's done, remove any existing AppArmor cache from your system and reboot. I've done the same for testing and confirmed the Brave + Tor setup works as expected via https://check.torproject.org.
HTH
@loveshack commented on GitHub (Apr 17, 2021):
I had replied by mail to say thanks for the excellent response, but that hasn't got through for some reason. Anyway, thank you!
@ghost commented on GitHub (Apr 17, 2021):
@loveshack No worries, it's not the first time I see differences between GitHub's web interface and mail correspondence. Glad to read this issue is fixed. It's thanks to your reporting that we became aware of the Brave + Tor + AppArmor situation, so thanks again for bringing it out here! Happy sandboxing.
I'll close this issue now, but feel free to reopen if you encounter other bumps on the road.