mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5211] Transmission crashes in a second #2918
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#2918
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 @egor-yudkin on GitHub (Jun 21, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5211
Description
Running Transmission torrent client with default profile makes it crash in a second.
I'm using default transmission profiles.
Steps to Reproduce
firejail transmission-gtkExpected behavior
Transmission should continue to run normally
Actual behavior
Behavior without a profile
Application works fine with --noprofile
Additional context
I tried to use a trasmission-gtk.local profile with DBus filter as described in #5161, but this makes things even worse - I'm just getting another error
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknownand Transmission doesn't even startEnvironment
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)Log
Output of
LC_ALL=C firejail transmission-gtkOutput of
LC_ALL=C firejail --debug transmission-gtk[transmission-firejail-debug.log](https://github.com/netblue30/firejail/files/8949953/transmission-firejail-debug.log)
@ghost commented on GitHub (Jun 21, 2022):
Hmm, your debug log shows this warning on line 26:
Warning: networking feature is disabled in Firejail configuration fileBy default that is enabled. Did you make any other changes to your /etc/firejail/firejail.config?
@rusty-snake commented on GitHub (Jun 21, 2022):
Debian disables it (for unprivileged users) by default (for security reasons).
Ubuntu uses the same package AFAIK.
@egor-yudkin commented on GitHub (Jun 21, 2022):
@glitsj16 Honestly, I'm not sure if I made this change... I don't recollect touching firejail.config at all. Could it be because I've originally installed firejail from Ubuntu repo, but then updated it from ppa:deki/firejail?
If I can assume that any uncommented lines in that file are changes to defaults, then I have two of them:
@rusty-snake commented on GitHub (Jun 21, 2022):
https://sources.debian.org/patches/firejail/0.9.64.4-2/config-hardening.patch/
@egor-yudkin commented on GitHub (Jun 21, 2022):
@rusty-snake Ok, this makes some sense to me now... But how I "fix" this?
Can I do something like
ignore restricted-networkin my local config file for transmission? Or I have to revert that change in firejail.config made by Debian?@ghost commented on GitHub (Jun 21, 2022):
@egor-yudkin The special treatment of these specific settings on Debian/Ubuntu is news to me too. In that context the warning is to be expected and might not be relevant to your transmission-gtk issue. I only noticed it in your debug log and that triggered the above question. To make sure you can
temporarilychangerestricted-networkby commenting it in your /etc/firejail/firejail.config. Besides trying that you can start commenting lines in /etc/firejail/transmission-{common,gtk}.profile one by one to find the option(s) that seem to cause what you're seeing. A simple debug tip: start TM in a terminal likefirejail --ignore=quiet /usr/bin/transmission-gtkso you can follow the loading of profile files and local overrides you might have more easily.@rusty-snake commented on GitHub (Jun 21, 2022):
First, if
--noprofileworks isrestricted-networkunrelated. Second doesfirejail --ignore="dbus-user none" /usr/bin/transmission-gtkwork?@egor-yudkin commented on GitHub (Jun 21, 2022):
@rusty-snake commented on GitHub (Jun 21, 2022):
Ok, then it's not dbus.
Maybe it's seccomp. Can you check your syslog and try
--ignore=memory-deny-write-execute.@rusty-snake commented on GitHub (Jun 21, 2022):
Do you use Wayland?
@egor-yudkin commented on GitHub (Jun 21, 2022):
Doesn't work. Same warning as it was originally.
Yes
@reinerh commented on GitHub (Jun 21, 2022):
A Debian user also reported a problem with transmission and 0.9.70: https://bugs.debian.org/1012734
Maybe it's the same issue, sorry for not forwarding it earlier, I wanted to confirm/reproduce it first...
@egor-yudkin
Can you please try it with
--ignore=private-lib?@egor-yudkin commented on GitHub (Jun 21, 2022):
This is it! It works with
--ignore=private-lib@reinerh commented on GitHub (Jun 21, 2022):
@rusty-snake @glitsj16
We already ignore private-lib in
transmission-remote-gtk.profileandtransmission-qt.profile. What about disabling it in general (transmission-common.profile)?@egor-yudkin commented on GitHub (Jun 21, 2022):
I just tried to do what the person who reported a bug suggested, and it worked.
Add to
~/.config/firejail/transmission-gtk.local:@reinerh commented on GitHub (Jun 21, 2022):
Thanks for the confirmation! :)
@ghost commented on GitHub (Jun 21, 2022):
@reinerh Sounds like the wise thing to do seeing
private-libcauses this kind of breakage. I'll hold until we get @rusty-snake's opinion on this before making a PR to remove private-lib from all relevant profiles. Thanks for clearing things up!@reinerh commented on GitHub (Jun 22, 2022):
Closed by #5213