mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1955] firejailed thunderbird fails to open links in firejailed chromium #1309
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#1309
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 @Tritonio on GitHub (May 23, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1955
Possibly related with issue #555. I'm on Linux Mint 18.3 Sylvia 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
I ran the following commands as requested on #555:
I am assuming that I need to allow access to /dev/fd? Not sure why it would be needed in order to open the link though in an existing browser. I cannot cd into the /dev/fd dir btw.
Cheers!
@SkewedZeppelin commented on GitHub (May 23, 2018):
See https://github.com/netblue30/firejail/issues/1770#issuecomment-364498100
tl;dr you basically just need to copy and paste links for Chromium based browsers, or use a Firefox based browser and keep a Firefox window open externally
@curiosity-seeker commented on GitHub (May 25, 2018):
@SkewedZeppelin : I doubt that this fully explains the problem. Yes - I was also affected by this issue when I set Google Chrome as default browser in Fedora for test purposes (normally I'm using Firefox). However, my wife uses Kubuntu with Chrome as default browser - and links clicked in firejailed Thunderbird open in firejailed Chrome without any problem. So there are obviously other aspects to consider. I haven't found the time yet to find out why both systems behave differently.
@smitsohu commented on GitHub (May 26, 2018):
@curiosity-seeker If you're on KDE, you can tell Thunderbird to open links with xdg-open. When Firejail version is the most recent (0.9.54), you additionally need to create /etc/firejail/thunderbird.local with this content:
Probably won't help @Tritonio though, as this trick doesn't work with desktop environments other than KDE.
@Tritonio commented on GitHub (May 27, 2018):
I tried the instructions here (http://kb.mozillazine.org/Changing_the_web_browser_invoked_by_Thunderbird) to set xdg-open (which exists and works on my system) to open the http(s) links but it still fails to open them...
@curiosity-seeker commented on GitHub (May 28, 2018):
@smitsohu : Thanks for reminding me - that's exactly what I'm doing. I had just forgotten to test Chrome as default browser again since I changed to xdg-open. I've done that now - and you are right: it works!
@smitsohu commented on GitHub (May 29, 2018):
@Tritonio regarding xdg-open, that's usually just a shell script, the magic is taken care of by the KDE backend.
@chiraag-nataraj commented on GitHub (Jul 26, 2018):
Looks like this is resolved, so I'll close it.
[edit] Never mind. It looks like the OP never resolved their issue.
@chiraag-nataraj commented on GitHub (Jul 26, 2018):
@Tritonio I think this seems to be an issue with the way chromium (and related browsers) operate. I'm not entirely sure how chromium checks for a running instance (I know how firefox checks - it looks for a
.lockfile in the profile directory). If we can figure out how chromium checks for running instances, we can solve this (as well as related) issues. Regardless, though, I would recommend just copy-pasting links - it's a bit of a change in workflow, but it does end up being more secure. The whole point of sandboxing is isolation, and programs trying to call other programs necessitates breaking that isolation. In some cases, it may be acceptable, but I would argue it shouldn't be the default. Yes, it will "break" programs, but those programs are doing unsafe things and crossing security boundaries. Until we have a safe, cross-platform way to call out to other programs, I think the default should be having people copy and pasting links.@chiraag-nataraj commented on GitHub (Jul 26, 2018):
Even with e.g.
xdg-open, sincexdg-openwill be run within the profile you're using for thunderbird, I suspect you'd have to whitelist more files and directories (possibly~/.local/share?) - in other words, you'd have to poke more holes in your profile. Again, I understand that this is acceptable for some people, but I don't think this should be done by default. If enough people want or need this feature, we could introduce a new profile option and command-line argument.@curiosity-seeker commented on GitHub (Aug 4, 2018):
FYI, I've been using my own Thunderbird profile for a long time which does not contain
nodbus. But recently opening links in Firefox form Thunderbird broke after a KDE update on Fedora 28. After addingignore nodbusto the Firefox profile it works again. I'm mentioning this as the default thunderbird.profile includes firefox.profile. With an individual profile nodbus has to be ignored in both profiles.
@chiraag-nataraj commented on GitHub (May 29, 2019):
This has been inactive for a while and we know what the culprit is. Marking it workaround and closing for now. @Tritonio, please feel free to re-open if you have more questions.