mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5487] --private=dir can be bypassed without --dbus-user=filter (dbus) #3013
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#3013
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 @blogdron on GitHub (Nov 27, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5487
Sorry I'm not very good at bug reporting and not sure if this is a bug or if I just don't understand something.
Description
Im download game from https://stacksengine.itch.io/stacks-space
I wish it didn't have access to the network and my files so I created a directory
~/Рабочий-стол/stgameand put it there, then I ran it like this.$cd ~/Рабочий-стол/stgame$firejail --noprofile --net=none --private=. ./stacks-spacestgamedirectory. But game see all my files from/includes/home/dronits my home and/home/guestand ignore--private=pwd` option :(If im run
$ firejail --private=. --net=none --seccomp.drop=all ./stacks-spacein game file dialog not opening with logI understand the program uses a loophole through the portal of the gnome
If im run
$ firejail --private=. --net=none --profile=default ./stacks-spaceIm have log
game chrooting in

/proc/131875/rootfor access to all system files and ignore--private=diroption.It seems to me that the
--private=diroption should work without additional keys that take into account the peculiarities of the programs. If I specified to change my home directory, then the program should not access the files. See picturehttps://i.ibb.co/CMzF2QS/2022-11-27-17-52-48.png
file dialog running from game have access to all files, and ignore
--private=.option@blogdron commented on GitHub (Nov 28, 2022):
Can anyone confirm this behavior on Chrome-based games/applications? Maybe this is normal behavior? Or not?
@rusty-snake commented on GitHub (Nov 28, 2022):
Known (and Expected) behaviour, see all the other issues.
FTR: Not a sandbox escape, "just" broken UX and functionality.
@rusty-snake commented on GitHub (Nov 28, 2022):
Also there's no
allsyscall and if you meant do run without any syscall it's impossible for a useful program.@blogdron commented on GitHub (Nov 29, 2022):
chromium and chrome They have the same behavior, but firefox does not!
Empirically found out that it is the envy of the option
dbus-user=filterIf this option is set, then chromium-based applications behave correctly and the called external file dialog shows exactly what it is limited to.
Probably this
dbus-user=filteroption should be activated automatically if used--privateor--private=dir. Maybe =)@kmk3 commented on GitHub (Aug 23, 2024):