mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5222] firefox-esr: util.c:931: create_empty_file_as_root: Assertion `s.st_uid == 0' failed #2920
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#2920
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 @wonbug on GitHub (Jun 25, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5222
Description
After updating two of Debian 11.3 machines with the latest firejail release, Firefox no longer starts.
Steps to Reproduce
apt updateto getfirejail (0.9.64.4-2+deb11u1) over (0.9.64.4-2)Expected behavior
Firefox starts
Actual behavior
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin a terminal?Firefox launches with
noprofilebut lacks firejail protections.Additional context
Any other detail that may help to understand/debug the problem
Environment
firejail version 0.9.64.4 on Debian 11.3. no custom firefox profiles in
~/.config/firejailChecklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)@reinerh commented on GitHub (Jun 25, 2022):
(removed wrong analysis)
@reinerh commented on GitHub (Jun 25, 2022):
(removed wrong analysis)
@reinerh commented on GitHub (Jun 25, 2022):
The assertion happens in this chunk of the CVE-2022-31214 patch (
ASSET_PERMS):But it's called from several places, so I have no idea which feature is triggering it.
@rusty-snake commented on GitHub (Jun 25, 2022):
--noprofileworks per OP so you can add features for firefox.profile one by one to find it.@daradib commented on GitHub (Jun 28, 2022):
Perhaps the culprit is noroot? Test by adding this to
~/.config/firejail/firefox-common.localin lieu of disabling the profile entirely:@wonbug commented on GitHub (Jun 28, 2022):
Indeed that directive got Firefox working again - thank you @daradib
@Alex-Farol commented on GitHub (Jul 2, 2022):
After this last update, I can't launch firefox using local dns (fdns) by issuing the command
firejail --dns=127.1.1.1 --private firefoxAlways get this:
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.firejail: util.c:910: create_empty_dir_as_root: Assertion (s.st_mode & 07777) == (mode)' failed.Error: proc 4650 cannot sync with peer: unexpected EOFPeer 4653 unexpectedly killed (Segmentation fault)@smitsohu commented on GitHub (Jul 7, 2022):
I missed this one, probably because the function was moved to fs_etc.c in the meantime. The underlying problem is that setuid and sticky bits must be set by an explicit call to chmod, substracting mode from the umask is not enough.
As these files are overmounted anyways, it is probably easiest to use some fixed mode instead, like 0600 and 0700.
@smitsohu commented on GitHub (Jul 7, 2022):
This should fix
firejail --dns=127.1.1.1 --private firefox.I don't know at the moment what's going on with
noroot. Unfortunately I'm having difficulties in reproducing it.@reinerh commented on GitHub (Jul 17, 2022):
The issue has also been reported here, also with
--dns(and--net=).I'll try to reproduce it and check your fix.
@davew-fj commented on GitHub (Aug 5, 2022):
I have symptoms similar to those described in this thread.
My OS is Linux Antix21, 64 bit (Bullseye debian), on a Dell e5430. Firejail 0.9.64.4-2+deb11u1
Below are warnings received when opening various browsers in firejail.
Some complain but open anyway. Others do not open. A common thread is that "networking feature is disabled in firejail configuration file." However, I don't see that in /etc/firejail/firejail.config. Two parameters were not the defaults. This warning disappeared after changing "cgroups No" to yes, and "restricted network yes" to no. But this did not restore Firefox function.
Firefox (91esr) was working properly in Firejail, for several days (this is a new computer to me, and software is being added slowly).
I think the problem may have started with an attempted installation of Lutris. But the problem did not resolve, after complete removal. It might also be related to attempted install of AirVPN (eddie-ui, not yet working) and NordVPN (cli software, working). The VPN was NOT activated when using the browsers in firejail.
In terminal: firejail firefox (After restoring defaults in firejail.config the Warning disappears, but the Seccomp problem apparently prevents Firefox from opening.)
Dialog ends with:
Warning: networking feature is disabled in Firejail configuration file
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
DBus user socket was not found.
No proxies specified
The problem is also present with Waterfox browser (but different):
Warning: networking feature is disabled in Firejail configuration file
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 4800, child pid 4801
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Child process initialized in 91.60 ms
Error: no suitable waterfox executable found
The Seamonkey browser works in firejail, but in terminal produces this warning:
Warning: networking feature is disabled in Firejail configuration file
Librewolf produces the following in firejail:
Warning: networking feature is disabled in Firejail configuration file
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Parent pid 5383, child pid 5384
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Seccomp list in: !chroot, check list: @default-keep, prelist: unknown,
Child process initialized in 90.24 ms
JavaScript error: resource://gre/modules/XULStore.jsm, line 68: Error: Can't find profile directory.
I apologize for the long post. Perhaps it provides a clue to folks more knowledgable than me.
@rusty-snake commented on GitHub (Aug 5, 2022):
You have at least 4 issues/questions but non of them is caused by create_empty_file_as_root.
@davew-fj commented on GitHub (Aug 15, 2022):
I apologize for my lack of technical knowledge (represented in my previous post). I wanted to report that all problems mentioned have been corrected. Firefox and Waterfox function properly in Firejail, again (following re-installation of the operating system).
For what it's worth, I believe my problem was caused by a failed attempt to install lutris (the package included bubblewrap). Uninstalling those components did not fix things. Firefox was running in firejail at the time of the attempted installation.
All is well now. Thank you.