mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5416] chromium: can't create /dev/zero (private-dev) #2989
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#2989
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 @allhavebrainimplantsandmore on GitHub (Oct 12, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5416
Description
Blacklists in links in chromium-common.profile (such as in disable-programs.inc) that blacklist .config/chromium folders actually prevent chromium from saving any profile data, and chromium launches every time as if after a fresh install. (And actually some other profile settings were preventing chromium from starting even)
Steps to Reproduce
Steps to reproduce the behavior
Install ungoogled chromium in an Archlinux' systemd-nspawn container. Launch firejail chromium, shut down and launch again. List files in the .config/chromium/Default folder.
Expected behavior
After the first launch chromium creates a bunch of files/folders in .config/chromium folder to save profile settings.
Actual behavior
No files were created.
Additional context
Strangely, the blacklist of .config/chromium folder does not affect the essential functionality of chromium if launched outside of an nspawn container. When it should logically.
Environment
Archlnux, rolling
firejail 0.9.70
Checklist
/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)@rusty-snake commented on GitHub (Oct 12, 2022):
chrome, chromium, ungoogled-chromium, which one do you use?
What command did you used?
chromium-common.profile isn't intended for direct usage.
@allhavebrainimplantsandmore commented on GitHub (Oct 13, 2022):
I use ungoogled-chromium. I boot it with
firejail chromiumwith some flags to disable gpu related things. So the profile used is 'chromium.profile' which links to chromium-common.profile, which links to includes such as 'disable-programs.inc', which contain blacklists to .config/chromium folders. Ungoogled-chromium exec is just plain 'chromium' fyi.@rusty-snake commented on GitHub (Oct 13, 2022):
Ungoogled chromium uses different binary names, depending on the source (AUR, RPMfusion, ...).
So you managed to follow this line, then you opened the profiles? And saw this?
65c5480f2f/etc/profile-a-l/chromium.profile (L10)Are you 100% sure that ungooled-chromium will write to
~/.config/chromium?Also you didn't not completely filled the issue template and hide parts of it (instead of leaving them empty).
[edit]Does it work with --noprofile[/edit]
So are your STR correct?
No I guess. I guess ungooled-chromium will use
~/.config/ungoogled-chromiumas it should (using~/.config/chromiumwould be dangerous and conflicting) and you use the wrong profile.@allhavebrainimplantsandmore commented on GitHub (Oct 14, 2022):
You are right. Something was preventing chromium from launching so I was editing profiles and changed things around. Which is why didn't see the noblacklist in the original files.
But here's an actual culprit for the profile out of an nspawn container: private-dev. With it, u/chromium compains it can't create /dev/zero at launch and aborts.
As a side note, why does chromium profile still have CAPS.KEEP? It works without any caps now fine.
@rusty-snake commented on GitHub (Oct 14, 2022):
Can you give the command.
Because it only works if (unprivileged) user namespaces are enabled.
65c5480f2f/etc/profile-a-l/chromium-common.profile (L40-L41)@allhavebrainimplantsandmore commented on GitHub (Oct 14, 2022):
systemd-nspawn -U -D folder/@rusty-snake commented on GitHub (Oct 14, 2022):
And what error do you get?
@allhavebrainimplantsandmore commented on GitHub (Oct 14, 2022):
When a user launches u/chromium with private-dev line in chromium-common.profile uncommented it won't start saying "can't create /dev/zero."