mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6097] chromium: blacklisted paths are accessible (dbus) #3177
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#3177
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 @Lonniebiz on GitHub (Nov 21, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6097
firejail version: 0.9.72
OS: Debian 12
Profile: chromium-browser-privacy.profile
I'm using firejail to run an AppImage of Ungoogled Chromium, which can be downloaded here:
https://ungoogled-software.github.io/ungoogled-chromium-binaries/releases/appimage/64bit/
Specifically, I've download this is the exact file/version:
https://ungoogled-software.github.io/ungoogled-chromium-binaries/releases/appimage/64bit/119.0.6045.123-1
I'm running this AppImage with the following command:
firejail --appimage --profile=/etc/firejail/chromium-browser-privacy.profile /home/user/apps/ungoogled-chromium_119.0.6045.123-1.1.AppImage
Upon running this command, after the browser launches, press ctrl-o. A file dialog will appear, and you can navigate to any file on your computer.
I typically expect firejail profiles to sandbox web browsers, but this profile is not sand-boxed.
Relates to:
@rusty-snake commented on GitHub (Nov 21, 2023):
It is. What you see is the file picker of your Desktop Environment (specifically the xdg-desktop-portal Documents portal implementation)
@Lonniebiz commented on GitHub (Nov 21, 2023):
In Firefox, or LibreWolf, if you press alt and then go to File > Open, the sandbox doesn't even allow navigation outside of the sandbox.
In Ungoogled Chromium, with ctrl+o, you can navigate anywhere on the file system, but if you try to open a file outside of the sandbox it fails.
So, the reason for this difference is that Ungoogled Chromium doesn't have its own file picker? Hitting ctrl-o is using your desktop's file picker (which is not sandboxed). It can navigate anywhere, but cannot share with Chromium anything that's outside of the sandbox.
I guess LibreWolf has its own file picker built-in, and that's why that one can't even navigate out of the sandbox.
Is this the correct understanding? @rusty-snake
@rusty-snake commented on GitHub (Nov 21, 2023):
In short yes.
@Lonniebiz commented on GitHub (Nov 22, 2023):
@rusty-snake You mentioned that the Firefox.profile can be configured to exhibit the same behavior. How?
I'd specifically like to try that in LibreWolf to address this issue I have with its built-in file picker. Thanks for the information, and for being such a good shepherd of firejail. I really appreciate it.
@rusty-snake commented on GitHub (Nov 22, 2023):
Allow dbus access to
org.freedesktop.Portal.*, maybe ignore noroot and search on about:config for Portal to find the relevant pref.@rusty-snake commented on GitHub (Nov 22, 2023):
FF pref:
widget.use-xdg-desktop-portal.file-picker=1