mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1793] ktorrent: configuration does not persist #1215
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#1215
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 @zorates on GitHub (Mar 2, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1793
firejail version 0.9.52
ktorrent 5.1.0
Launching
firejail ktorrentwith the default profile in /etc/firejail/ktorrent.profile, changing some settings in ktorrent and clicking apply produces the following error on the console:No error when launching with the
--noprofileargument however.I checked ktorrent.profile and it contains the following lines:
so it appears the file is properly whitelisted, but it still doesn't work.
@Fred-Barclay commented on GitHub (Mar 3, 2018):
G'day @zorates
Do you know what those settings are you changed in ktorrent?
Thanks!
Fred
@zorates commented on GitHub (Mar 3, 2018):
For example the 'Default save location' or the the 'Maximum upload speed'.
I first ran ktorrent without firejail if that makes any difference, so the
ktorrentrcfile already existed and contained my initial setup. I then started running it in firejail, without any apparent issues, until I tried to change to above settings and notice that they don't survive a restart. This lead me to investigate the cause, which turned out to be firejail.@smitsohu commented on GitHub (Mar 3, 2018):
I see the same with all KDE apps when I try to add whitelisting to their profiles, and Firefox has similar problems when it attempts to update the default browser in mimeapps.list (see #1355).
This might have to do with KDE and Firefox trying to run rename() on whitelisted files, which fails because whitelisted files are mount points inside the sandbox and can't be renamed or replaced. It could be a lack of imagination on my side, but I guess this is a rather hard limitation in the interaction between KDE apps (or Firefox) and Firejail.
Also means we can drop all
mkfileinstructions in KDE app profiles with whitelist (i.e. akregator, kcalc and ktorrent).@rusty-snake commented on GitHub (Apr 1, 2020):
still an issue?
@smitsohu commented on GitHub (Apr 2, 2020):
Basically it is a limitation in the kernel. It can be addressed either there or in the relevant libraries, there is not much that Firejail can do (apart from dirty LD_PRELOAD hacks).
@rusty-snake commented on GitHub (Nov 9, 2020):
See https://github.com/netblue30/firejail/issues/3697#issuecomment-716468502 for a workaround.