mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #175] using links in sandboxed firefox #121
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#121
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 @Micha-Btz on GitHub (Nov 29, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/175
hi there,
just a usability question related to sandboed processes. i use firejail for pidgin, icedove, skype and
iceweasel. if i get a link in one of these apps, the reactions are different:
pidgin / skype: /usr/bin/iceweasel %u - not found
icedove: seems to open a new ifrefox instance, the result is, that all tabs set as start page are opened, but not the link i pushed
i think it is clear, the processes are separated from each other but is it possible to let this communicate?
@netblue30 commented on GitHub (Nov 30, 2015):
They do communicate, the trick is to have iceweasel already running. You basically have two firefox instances communicating. The new one started by pidgin/icedove communicates with the existing iceweasel instance, it passes the URL and it shuts down. How do you start the sandboxes?
@Micha-Btz commented on GitHub (Nov 30, 2015):
i have added the firejails to my aliases,
#sandboxing processes
alias iceweasel='firejail iceweasel'
alias icedove='firejail icedove'
alias skype='firejail skype'
alias pidgin='firejail pidgin'
alias deluge='firejail deluge'
so that is startet with the profiles from 0.9.34 debian sid.
mdomann@sysiphus:
$ firejail --list$ firejail --tree1427:mdomann:firejail iceweasel
1434:mdomann:firejail icedove
3745:mdomann:firejail --debug pidgin
4028:mdomann:firejail skype
mdomann@sysiphus:
1427:mdomann:firejail iceweasel
1431:mdomann:iceweasel
1434:mdomann:firejail icedove
1438:mdomann:icedove
3745:mdomann:firejail --debug pidgin
3746:mdomann:pidgin
4028:mdomann:firejail skype
4029:mdomann:skype
skype, pidgin and icedove, no can comunicate with firefox.
@netblue30 commented on GitHub (Dec 1, 2015):
Can you try it without aliases? I have it running here on Debian jessie. I start with icedove, click on a link in an email, and it opens iceweasel with the correct page. Or, if iceweasel is already running, a new tab is opened. I didn't try it from skype or pidgin, but it shouldn't make any difference.
@Micha-Btz commented on GitHub (Dec 3, 2015):
hm, i tried it today, all directly from console with debug output. But it doen't change the described behaviour.
iceweasel and icedove are set as default about the xfce standard. but none work as aspected.
any idea? what command do you use?
@Micha-Btz commented on GitHub (Dec 3, 2015):
icedove shows this message
Warning: an existing sandbox was detected. iceweasel will run without any additional sandboxing features in a /bin/sh shell
@Micha-Btz commented on GitHub (Dec 7, 2015):
which version of thunderbird and firefox you use? i use for both the esr 38.x
@netblue30 commented on GitHub (Dec 8, 2015):
I am on Debian jessie, with both of them on 38.4
Don't worry about this one. In case you already have a sandbox running, it will not allow you to start another sandbox inside it. Instead, it will start your program as is.
Let's try to debug it. Without iceweasel running, I start icedove in a xterm:
I click on a link in an email, this opens iceweasel with the new link. After this I open another xterm and run:
The command prints all the processes for all sandboxes running. I have a single sandbox (6237), and inside it I have two processes: icedove (6239) and iceweasel (6317). Notice how iceweasel was started with a url, This is the link I've clicked in iceweasel. Try this command, maybe the url is not passed to iceweasel.
You can also use firemon utility (distributed with firejail) to debug it. It will tell you what processes are started in the sandbox. You run "sudo firemon" in a separate xterm before you start icedove, and as you start the sandbox, the messages will start coming:
Monitor here if the link is passed down to iceweasel.
@xinomilo commented on GitHub (Dec 13, 2015):
same debian/sid. wanted to report different behavior in icedove and another instance of mozilla thunderbird.
icedove opens links in iceweasel (as it is associated to do), but mozilla thunderbird doesnt open url links at all. same thunderbird without firejail opens them in default browser.
from what i saw, they load the same firejail profiles, didnt debug further than that.
dont know if others face the same issue, its not a default scenario.
edit] found this with firejail --debug /path/to/mozilla/thunderbird :
[70:70:1213/173945:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium/chrome-sandbox is owned by root and has mode 4755.
#0 0x55f66ac1ebee
#1 0x55f66ac343f0
#2 0x55f66d37ec73
#3 0x55f66d057ad0
#4 0x55f66d0e58f7
#5 0x55f66cee5dc6
#6 0x55f66cee5ada
#7 0x55f66abf1e0f
#8 0x55f66abf0f30
#9 0x55f66a753258 ChromeMain
#10 0x7ff0c4ef2870 __libc_start_main
#11 0x55f66a7530f9 _start
but /usr/lib/chromium/chrome-sandbox is owned by root and 4755.
i guess icedove would behave the same, if it wasnt associated with iceweasel in preferences.
@Micha-Btz commented on GitHub (Dec 13, 2015):
i have give it another try. if i clicked a link in icedove, the browser opends. but the link is not opened.
root@sysiphus:/home/mdomann# firemon
1326:mdomann:firejail pidgin
1329:mdomann:pidgin
1338:mdomann:firejail icedove
1340:mdomann:icedove
12077: (zombie)
12083: (zombie)
12298:mdomann:firejail iceweasel
12301:mdomann:sh -c iceweasel
12302:mdomann:iceweasel
2040:mdomann:firejail deluge
2041:mdomann:/usr/bin/python /usr/bin/deluge
18:48:11 fork 1340 (mdomann) icedove
child 12525 icedove
18:48:11 fork 12525 (mdomann)
child 12526 icedove
18:48:11 exec 12526 (mdomann) firejail iceweasel
18:48:11 fork 12526 (mdomann) firejail iceweasel
child 12528 firejail iceweasel
18:48:11 exec 12528 (mdomann) sh -c iceweasel
18:48:11 fork 12528 (mdomann) sh -c iceweasel
child 12530 sh -c iceweasel
18:48:11 exec 12530 (mdomann) iceweasel
18:48:11 exit 12525 (mdomann)
18:48:11 fork 12530 (mdomann) iceweasel
child 12532 iceweasel
18:48:11 exit 12532 (mdomann)
18:48:11 exit 12528 (mdomann)
18:48:11 exit 12526 (mdomann)
18:48:11 exit 12530 (mdomann)
and one thing that is realy strange. if i run iceweasel with the profile, i can only acces the Donwload folder, but i iceweasel was startet from icedove, i have acces to much more files.
@netblue30 commented on GitHub (Dec 16, 2015):
It is clear, it doesn't pass down your url to iceweasel. I have no idea why, did you modified anything in icedove configuration?
Try this: as root open /etc/icedove/pref/icedove.js. Comment out the two pref("network.protocol-handler.app*" lines and replace them as follows:
The two profiles are different, the one used by iceweasel is more restrictive than the one used by icedove. I usually start iceweasel before icedove, so when I click on a link, icedove contacts the already running instance of iceweasel.
@Micha-Btz commented on GitHub (Dec 17, 2015):
ok, with the suggested option, i get icedove and pidgin to work with iceweasel.

skype not there is no option for changing the default browser and all possibility's the web suggested does not work.
i also try to modify .config/mimeapps.list but no luck. since i am not often use skype, i can live with that.
so far i close this issue.