mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #995] Thunderbird accesses ~/.mozilla even when blacklisted #678
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#678
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 @acrobat1 on GitHub (Dec 21, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/995
I'd like Thunderbird to leave alone the .mozilla directory (since I don't directly click on links in email), so I've added
blacklist ~/.mozillato my thunderbird profile, but it doesn't work :is there any workaround for this?
As I've said, I don't think Thunderbird absolutely needs to access the .mozilla directory, at least not in the way I use Thunderbird: since the purpose of sandboxing is to isolate processes as much as possible, I'd really like to cut access to .mozilla in this case.
@netblue30 commented on GitHub (Dec 21, 2016):
You need to add the following two lines at the top of /etc/firejail/thunderbird.profile:
If you add them at the end, it will have no effect. Also, take a look at the whitelists in /etc/firejail/firefox.profile, you might want to blacklist some other directories. The default Firefox and Thunderbird profiles are quite generic, good for all kind of use cases, such as reading PDF files, playing audio files etc.
@curiosity-seeker commented on GitHub (Dec 23, 2016):
Neither do I. I'm using a customized thunderbird.profile that doesn't include firefox.profile. And Firefox still opens when I click links in emails.
However, I remember that I had problems until it worked as it should. After some trial and error I finally deleted
mimeTypes.rdfin ~./thunderbird/, and when Thunderbird asked me the next time which application to use (for links, pdf files, xls files, etc.) I always pointed it to/usr/bin/xdg-open.@acrobat1 commented on GitHub (Dec 27, 2016):
Thanks a lot, I really wasn't aware of that. So my understanding would be that arguments in a profile will be processed in order, kinda like firewall rules?
Yes, I thought so : therefore I wrote my own (kinda restricted) profile for Thunderbird
After trying with the --audit option, I get this
which looks kinda OK for my needs, the only issue being that if clicking on a link, it will still be opened in the predefined browser, although in a private temporary sandbox : is there any way to avoid this completely?
@netblue30 commented on GitHub (Dec 29, 2016):
You are right, in some cases you can later undo what you did before.
For various reasons, both Firefox and Chromium keep only one instance of the program running. When you click on a link in Thunderbird, if another instance of the browser is running, it will open a new tab (or window) into the existing browser. The way I use it, I start Firefox in a separate sandbox before starting Thunderbird - the two sandboxes manage to communicate somehow!