mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1481] Claws-mail doesn't open external links in Vivaldi browser #996
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#996
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 @kanyck on GitHub (Aug 19, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1481
Clicking on the link does nothing, but right-click -> "Open link" opens the link in place.
Here is the output:
Disabling private-dev in claws-mail and adding vivaldi.local as follows
seem to avoid the error messages but lint still does not open:
Meanwhile, running claws-mail directily as /usr/bin/claws-mail & works ok.
@valoq commented on GitHub (Aug 20, 2017):
The claws-mail profile restricts access to the minimal environment that claws needs to operate normally.
However if you try to open a link using a browser, that browser will be opened within the context of the claws process and therefore from inside the sandboxed environment.
If you wanted to open hyperlinks to websites without manually copying the address, you would need to allow access to all resources the browser would require within the claws profile.
The attack surface of common internet browsers is huge so that is not really something I would recommend.
Also the error message "Warning: cannot switch euid to root" indicates that the target browser is started by firejail as well, but using a secondary firejail process is not supported as far as I know. Not sure there is a workaround for this, even if you allowed all the resources required by the browser.
@kanyck commented on GitHub (Aug 21, 2017):
Unfortunately I don't fully (foolly?) understand the logic behind this. Unjailed claws-mail communicates with jailed vivaldi just fine. From the other hand I noticed that when I click to a torrent link it opens in an empty transmission client if the client isn't running. If it is, it receives the torrent file from the browser and fully operable with it. If I click mailto: link in the browser, it opens claws-mail that doesn't see the setup and therefore tries to set up the new profile to send a mail. Either firejail profiles are to be customized somehow or some important interoperability part is missing...
@curiosity-seeker commented on GitHub (Aug 22, 2017):
@kanyck : I'm not using claws-mail so what I suggest may be nonsense. But you can try to change its settings in such a way that
xdg-openis used. This is what I've done in Thunderbird for all my applications with the result that in all cases the firejailed default applications are opened whenever I click a link or an attachment.@kanyck commented on GitHub (Aug 23, 2017):
@curiosity-seeker Thank you but it does use
xdg-open.@smitsohu commented on GitHub (Sep 13, 2017):
A speculation: From above we can see that clicking on a link makes Vivaldi run inside the Claws-Mail Firejail sandbox:
However, this Claws-Mail Firejail sandbox prevents Vivaldi from setting up its own Chromium-style sandbox (which I think it tries to do). You could try disabling some options in claws-mail.profile, like caps.drop, nonewprivs, seccomp (implies nonewprivs) or noroot, to make everything work, but you will end up with a Claws-Mail sandbox that is watered down significantly.
EDIT: Just noted that this is a simple rephrasing of what @valoq has said before.
The other way round, fixing
should be easier. You could try adding the following to vivaldi.local:
But take all of this with a grain of salt, as I couldn't properly reproduce your problem on Debian, and I don't have a Gentoo setup running.
Finally: To better address issues like this or possibly this #1341, it might make sense to rewrite claws-mail.profile such that it matches the current thunderbird.profile, i.e. without options but with
include /etc/firejail/browser.profileat the end.@rusty-snake commented on GitHub (Jun 26, 2019):
@kanyck
I'm closing here due to inactivity, please fell free to reopen if you still have this issue.