mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4073] Flameshot escapes firejail #2524
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#2524
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 @a1346054 on GitHub (Mar 9, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4073
Firejail installed from buster-backports repo of debian 10 (buster). Flameshot installed from buster-backports too.
/usr/local/bin/flameshotlink tofirejailcreated byfirecfgUsing default
flameshot.profilenot modified in any way, and noflameshot.localexists.If I run
firejail flameshot, then flameshot is correctly running in firejail. But if I runfirejail flameshot guithen flameshot ends up running outside of firejail.If I run
/usr/local/bin/flameshotthen flameshot is correctly in firejail. But if I run/usr/local/bin/flameshot guithen it is running outside of firejail.@rusty-snake commented on GitHub (Mar 9, 2021):
That's because of D-Bus.
@rusty-snake commented on GitHub (Mar 9, 2021):
And there is nothing that can be done, if you start it with
dbus-user noneit does not work and if you firejail the D-Bus activated instance, it crashes.@a1346054 commented on GitHub (Mar 9, 2021):
I'd recommend putting a comment in the
flameshot.profilefile then, and disablefirecfgfrom automatically setting up the symlink/usr/local/bin/flameshotOn my system, it's the
/usr/lib/x86_64-linux-gnu/firejail/firecfg.configfile that determines what gets set up.@rusty-snake commented on GitHub (Apr 14, 2021):
Makes sense
Why?
@ghost commented on GitHub (Apr 15, 2021):
Upstream released v0.9.0. The release notes mention several fixes for Wayland (GNOME/KDE). They offer a Debian 10 deb, have you tried that yet?
@rusty-snake May I ask how you're doing that?
Side-note context: ever since I saw this comment in gjs.profile:
I've been using overrides in
/etc/dbus-1/servicesto sandbox them via firejail. That seems to work for the (few) apps I use that benefit from such treatment. So we might be able to get around systemd here IMO, although automating it cfr. firecfg would be a bit more complex. I only briefly looked at flameshot (mostly because I prefer to use fully Wayland supported apps whenever I can), and it has aorg.flameshot.Flameshot.servicefile too. I didn't see it crashing when manipulating that to run firejailed. To be clear, flameshot itself appears to have several Wayland/Xwayland issues that still need proper fixing, but that's out of our reach. Just wondering if you have any thoughts/recommendations on how to side-step these D-Bus activated applications in general, if any.@rusty-snake commented on GitHub (Apr 15, 2021):
FTR:
2ae7295f1a (diff-9518649b216fa12a3455382e2f478f878d66e062c159f8b530973d0763865a66)firecfg.py 😉
Group: https://github.com/rusty-snake/firecfg.py/blob/master/etc/groups/DBus
Code: https://github.com/rusty-snake/firecfg.py/blob/master/firecfg/dbus_service_firejailer.py
Maybe the crash is gone since I tested it.
@ghost commented on GitHub (Apr 15, 2021):
@rusty-snake Very nice! I hadn't looked at your firecfg.py project in a while. Thanks for the specifics, I'll have to start using it, perhaps bring it into the AUR now that the Arch Wiki mentions it.
@rusty-snake commented on GitHub (Aug 4, 2021):
I'm closing here due to inactivity, please fell free to request to reopen if you have more questions.