mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3420] Firefox doesn't start on Ubuntu 20.04 #2147
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#2147
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 @dlehmenk on GitHub (May 17, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3420
Bug and expected behavior
When starting firefox in firejail nothing happens (not even a crash, the program runs, but nothing is displayed).
No profile or disabling firejail
firejail --noprofile PROGRAMin a shell?whereis PROGRAM,firejail --list,stat $programpath)?Both works fine.
Reproduce
Steps to reproduce the behavior:
firejail firefoxEnvironment
Linux distribution and version (ie output of
lsb_release -a)Ubuntu 20.04
Firejail version (output of
firejail --version) exclusive or used git commit (git rev-parse HEAD)firejail version 0.9.62
Additional context
I'm using home encryption with gocryptfs.
Checklist
There are changes to the profile here at github, for which I'm not sure what they do. The profile does not work anyways when I tried using it as local override.
find / -name 'firejail' 2>/dev/null/fd firejailto locate profiles ie in/usr/local/etc/firejail/PROGRAM.profile)debug output
on request
@ghost commented on GitHub (May 17, 2020):
Without networking a web browser isn't of much use obviously. Did you disable networking in /etc/firejail/firejail.config?
@dlehmenk commented on GitHub (May 17, 2020):
No, it's a fresh install. It failed on the first try.
@ghost commented on GitHub (May 17, 2020):
Thanks for clearing that up. I did notice that Ubuntu packages that /etc/firejail/firejail.config file with two options changed to non-default settings: 'cgroup no' and
restricted-network yes. The latter restricts using thenetfilteroption to root, so your regular user will not be allowed to use it, even though it is enabled in /etc/firejail/firefox-common.profile. Personally I don't know exactly why it is like that on your OS, I'll have to contact our Debian expert for his input. For now you can comment that option and check if it improves things.@reinerh Can you make anything out of this?
@reinerh commented on GitHub (May 17, 2020):
Yes, the two features are disabled by default in Debian (and therefore also Ubuntu), as it's more secure to keep them disabled (they can be used to circumvent other system-wide restrictions, e.g. packetfilters).
See also https://bugs.debian.org/916920
@reinerh commented on GitHub (May 17, 2020):
Having restricted-network on only means that the user can't for example set a custom packet filter.
It does not prevent any network connectivity, so this is probably not the reason for firefox not starting.
@ghost commented on GitHub (May 17, 2020):
@reinerh Thanks for explaining, the referenced bug report is very informative. Not that it helps the OP, but I'll try installing Ubuntu 20.04 LTS and see if I can get a clearer view on the issue at hand.
@rusty-snake commented on GitHub (May 18, 2020):
@karoshi42 anything in the journal/syslog?
@dlehmenk commented on GitHub (May 18, 2020):
The only line in the log is starting with
audit: SECCOMP....But I tested with different users and noticed: The error only happens when using a wayland session. If I choose 'GNOME on Xorg' during login, firejail works just as expected. Normally I'm using the plain GNOME session (not the Ubuntu one)
@ghost commented on GitHub (May 18, 2020):
Aha, that's important information indeed. What happens when you use the plain GNOME session and start Firefox via
MOZ_ENABLE_WAYLAND=1 firejail firefox?@dlehmenk commented on GitHub (May 18, 2020):
Unfortunately that doesn't help. I also tried to comment out
nodbus, because it was mentioned in #3290, but that also didn't work. I'm not quite sure though what @rusty-snake's last comment was about over there.@ghost commented on GitHub (May 18, 2020):
What @rusty-snake asked for IMO is whether or not you notice any relevant warnings/errors in your systemd journal/syslog at the time you start Firefox. Assuming you're using systemd, open a second terminal window/tab and run
journalctl -f, that will keep showing log output. Return to the previous terminal window/tab and just runfirejail firefoxagain and check the log output in the other window/tab.@dlehmenk commented on GitHub (May 19, 2020):
Ah, sorry for my unclear wording, I meant the last comment in #3290. I already checked the log, which is mostly silent, apart from the aforementioned
audit: SECCOMPline.@rusty-snake commented on GitHub (May 23, 2020):
@karoshi42 which syscall is blocked?
@dlehmenk commented on GitHub (May 23, 2020):
The full line is
SECCOMP auid=1000 uid=1000 gid=1000 ses=3 pid=8592 comm="firefox" exe="/usr/lib/firefox/firefox" sig=31 arch=c000003e syscall=312 compat=0 ip=0x7f0a07d6970d code=0x0@rusty-snake commented on GitHub (May 23, 2020):
#3219
@rusty-snake commented on GitHub (May 23, 2020):
For now you can add
seccomp !kcmp.@dlehmenk commented on GitHub (May 23, 2020):
Yes, that was the reason, thank you!
Only one question: If I add the seccomp line to a firefox.local file in .config, it does not seem to work. Do I have to add more there, or just copy the whole profile from /etc?
@rusty-snake commented on GitHub (May 23, 2020):
You can also add it to
/etc/firejail/firefox-common.profilebecause the next firejail release fix this.