mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2026] Firejail breaks Gnome Shell connector #1365
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#1365
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 @ghost on GitHub (Jul 4, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2026
I was unable to check for extension updates via https://extensions.gnome.org as both Firefox and Chromium couldn't find a Gnome connector (Firefox: "native host connector is not detected", Chromium: "native host has exited").
Since chrome-gnome-shell (the connector) is already installed, I tried to run chromium from the terminal and I saw this:
If I delete the browser's symlink to firejail from /usr/local/bin the connector is detected and everything works.
I'm using firejail 0.9.54-1 on arch linux.
@chiraag-nataraj commented on GitHub (Jul 4, 2018):
Hmm, is there an active (not commented out)
private-binin your profile? The error would suggest that/usr/bin/chrome-gnome-shellisn't available in the sandbox (which would suggest thatprivate-binis active). Another possibility is that something like theseccompfilter is breaking it.Since I don't use Gnome, I can't test this for you, but the easiest way of debugging this is to use
--ignore=<blah>on the terminal or comment stuff out in the profile (maybe copy the system profile to~/.config/firejailand modify that file so that you don't mess with the installed files) and see what breaks the connector.@ghost commented on GitHub (Jul 4, 2018):
Ok, some progress: if I comment out BOTH
nodbusand the lineinclude /etc/firejail/disable-interpreters.incin firefox-common.profile and chromium-common.profile the problem goes away.The above change also solved a problem I've been having recently (perhaps after an update), where my default browser, Firefox, kept warning it wasn't set as default, every single time I started it.
BTW, no
private-binis active anywhere in the profile files.@ghost commented on GitHub (Jul 7, 2018):
Ok, so the offending code is the python3 block in
disable-interpreters.inc(which makes sense because chome-gnome-shell uses python3), plusnodbus.This problem is probably common to all Gnome users, but I guess users should decide whether take the risk and manually disable the extra protections provided by firejail. Feel free to close this issue if you agree.
@chiraag-nataraj commented on GitHub (Jul 8, 2018):
Hmmm, maybe we can leave a note in the profile so that affected users will know what to do?
@ghost commented on GitHub (Jul 11, 2018):
Seems reasonable to me.
@ghost commented on GitHub (Jul 21, 2018):
Since Firefox supports multiple user profiles, I was wondering if there is a way to make firejail use a different .profile file somehow, perhaps depending on command line parameters or something else?
That way one could have a secure browser instance for everyday use, and a "less secure" one for exceptions like gnome.
@chiraag-nataraj commented on GitHub (Jul 21, 2018):
I would just set up scripts for that. You can use
--profile=to tellfirejailto use a specific profile file. If you created two profile files, one blacklistingdbusandpython3(say,firefox.profile) and without those blacklists (firefox-insecure.profile), then you could usefirejail firefoxas your regular command andfirejail --profile=~/.config/firejail/firefox-insecure.profile firefoxas your insecure version.@ghost commented on GitHub (Jul 22, 2018):
Much simpler than I though. Thank you.
@RedAtRareCandy commented on GitHub (Nov 19, 2018):
Hi all,
Thanks for the pointers on how to work-around this so Gnome Extensions works again.
I followed the firefox-insecure.profile suggestion (modified copy of firefox.profile), but found that the nodbus line was in the firefox-common.profile so rather than duplicate that too or edit it, I used ignore in my new profile instead. Had to add a few extra python3 noblacklist lines in as well. I'm not very familiar with correct practice of when to use ignore so hopefully this was acceptable and was the best approach :)
firefox-insecure.txt