mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2961] Firefox and Thunderbird jails share some settings, if the other jail is "running" #1853
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#1853
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 @HidingCherry on GitHub (Sep 13, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2961
Whenever I switch or change the VPN server, the gateway is changed too. (This happens whenever I my laptop goes into standby.)
Then Firefox and Thunderbird inside firejail are not able to connect to any server in the internet, as long as one of them is running while I changed the VPN server/gateway. (This is true for any jail.)
If I close both, Thunderbird and Firefox, each one of them, they can then connect to the internet again.
Thus, they share settings like the gateway-setting while one of the jails is running.
I think that the "Thunderbird forgets profiles"-issue (not an opened issue, just a name for the issue I mean) is bound to:
Doing the other way around:
There are no issues.
Please confirm my issue(s).
I think the most important issue is the 1. firefox 2. thunderbird issue, then (with probably low priority) the gateway setting issue.
@rusty-snake commented on GitHub (Oct 13, 2019):
@HidingCherry commented on GitHub (Oct 13, 2019):
My gateway issue was gone, after I reinstalled my system (Parrot OS) and resolvconf.service seems to works correctly. It might've been a DNS issue, not gateway issue.
I have to further test that but I have no time for the moment.
The profile issue:
Thunderbird cannot access the default profile if firefox was started and is running before thunderbird was started.
I have this issue even after reinstalling my system.
@rusty-snake commented on GitHub (Dec 14, 2019):
@Loader009 still an issue?
@HidingCherry commented on GitHub (Dec 21, 2019):
@rusty-snake yes, sadly.
firejail firefoxin a terminal, let it openfirejail thunderbirdin a terminal, thunderbird asks you to set up an account@rusty-snake commented on GitHub (Dec 21, 2019):
Distro? firejail-version? firejail-profile changes? Any other special things.
what happens if starting firefox w/o firejail and TB with FJ? What when starting FF with FJ and TB w/o FJ?
@HidingCherry commented on GitHub (Dec 21, 2019):
Distro
ParrotOS (parrotlinux.org)
security focused rolling release distribution, based on debian
firejail-version
Version: 0.9.58.2-3parrot4
Maintainer: Reiner Herrmann ---email hidden---
firejail-profile changes
no other changes or special things since my last complete reinstall (about 3 months ago)
Firefox w/o firejail - TB with firejail
Firefox starts with no issues
Thunderbird starts with no issues
Firefox with firejail - TB w/o firejail
Firefox starts with no issues
Thunderbird starts with no issues
comment
Mind the
49069:anonymous:firefox:firejail thunderbirdthing, the profile "firefox" is being used for thunderbird.@rusty-snake commented on GitHub (Dec 21, 2019):
So, starting only one in FJ has no issue, right? => both must be firejailed to get this issue.
You set this up? What happens with
firejail --profile=/etc/firejial/firefox.profile firefoxand thenfirejail --profile=/etc/firejail/thunderbird.profile thunderbird? If you want that TB use the FF profile, you must whitelist additional paths.@HidingCherry commented on GitHub (Dec 21, 2019):
Kinda correct, only happens whenever firefox is firejailed first.
No, all I do is
firejail firefoxorfirejail thunderbird.I don't want thunderbird to use the firefox profile, it happens "on its own", without my intervention.
Down there you see what happens when running the two.
The firejail of thunderbird tries to switch to the firefox firejail and fails.
This might happen because the firefox.profile is included in the thunderbird.profile -- this might be an outdated config?
source: https://nest.parrotsec.org/debian-packages/firejail/blob/master/etc/thunderbird.profile
I also noticed that I uncommented
ignore nodbus, sorry, I forgot that change of my.@rusty-snake commented on GitHub (Dec 21, 2019):
grep "join-or-start" /etc/firejail/*?@HidingCherry commented on GitHub (Dec 21, 2019):
yep, the firefox.profile contains a join-or-start.
@rusty-snake commented on GitHub (Dec 21, 2019):
@HidingCherry commented on GitHub (Dec 22, 2019):
This works, thank you.
Might the following way be better?
Based on this:
https://github.com/netblue30/firejail/blob/master/etc/thunderbird.profile
@rusty-snake commented on GitHub (Dec 22, 2019):
No #2818.
@HidingCherry commented on GitHub (Dec 22, 2019):
I see, that commit is not merged in the parrot git, thus it would break thunderbird-link->firefox compatibility.
Thanks again.
I'll close this, because the issue is solved now.
@HidingCherry commented on GitHub (Mar 25, 2020):
@rusty-snake I might have another solution but this is out of firejails possibilities I think.
I modified
~/.local/share/applications/firefox.desktopto this:Exec=firejail --profile=firefox --join-or-start=firefox firefox %uAnd
~/.local/share/applications/thunderbird.desktopto this:Exec=/usr/bin/firejail --profile=thunderbird --join-or-start=thunderbird thunderbird %uAfter a restart of thunderbird it ran in a different jail than firefox but opened a link in the correct firefox window.
@rusty-snake commented on GitHub (Mar 25, 2020):
FYI: #3294
or easier:
echo "join-or-start firefox" >> "~/.config/firejail/firefox.local"and same for thunderbird.PS: the
--profilearguments are unnecessary.@HidingCherry commented on GitHub (Mar 25, 2020):
This would result in every firefox instance running in the jail "firefox", but I actually use a firefox-home and a firefox-uni (university) jail, that's why I can't do that.
(Soon I'll also do it for thunderbird.)
The
--profileargument is (in my opinion) necessary because otherwise thunderbird has no jail in firejail --list.Right now:
@rusty-snake commented on GitHub (Mar 25, 2020):
Ok, thats a special case where it is easyer with the .desktop file. Only alternative would be
--join-or-start=firefox-uni --ignore=join-or-start.If you have
Exec=firejail thunderbirdfirejail will automatic pickthunderbird.profile.--profileis only nessessary if you havefirejail --profile=thunderbird bashorfirejail --profile=thunderbrid thunderwird.wrapper.@HidingCherry commented on GitHub (Mar 25, 2020):
Yeah, that's an idea.
Sadly no. Look at this:
Before running
firejail thunderbirdAfter running
firejail thunderbirdProbably because of this in thunderbird.profile to get the initial issue of this ticket solved:
@rusty-snake commented on GitHub (Mar 25, 2020):
this shows that TB is sandboxed. IDK what you mean with "therwise thunderbird has no jail in firejail --list."
@HidingCherry commented on GitHub (Mar 25, 2020):
Ok, then I missinterpreted it.
I thought the empty jailname meant that thunderbird was not jailed or not jailed correctly.