mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #725] Firejailed processes not always close properly #490
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#490
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 @curiosity-seeker on GitHub (Aug 17, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/725
I'm running Firejail 0.9.40 on Fedora 24. Sometimes I notice that for firejailed programmes which I close processes are still running.
Example: Today I ran Thunderbird. firejail --tree shows:
Then I close Thunderbird and start it again after a while. Now firejail --tree shows:
This is also confirmed, e.g., in ksysguard.
I had noticed something similar if I open a PDF file in Thunderbird with Okular. After closing Okular the respective processes are still shown in firejail -tree.
I'm sorry for not being more specific as this observation is not always reproducible. My impression is that this only occurs with Thunderbird and Okular.
@netblue30 commented on GitHub (Aug 18, 2016):
Can you do a test on the latest git version?
@curiosity-seeker commented on GitHub (Aug 18, 2016):
Sure! I just installed the copr build. I will test it and report!
@curiosity-seeker commented on GitHub (Aug 18, 2016):
With the copr version (0.9.42-1.201608171910git20e643e.fc24) the problem still exists. After closing Thunderbird, waiting a couple of minutes and starting it again, firejail --tree shows:
Here's what ksysguard show:

@netblue30 commented on GitHub (Aug 18, 2016):
What version of Thunderbird do you have? Here on Debian stable it seems to close down nicely.
@curiosity-seeker commented on GitHub (Aug 19, 2016):
I'm using v. 45.2.0
@netblue30 commented on GitHub (Aug 20, 2016):
I'll have to look into it, thanks.
@curiosity-seeker commented on GitHub (Aug 20, 2016):
Thanks! If it happens - and it doesn't every time as mentioned earlier - and I close Thunderbird again, the latest processes (in above example PID 8117,8118,8210) are terminated properly. What's still running are the PIDs 3841 and 3842.
@SYN-cook commented on GitHub (Mar 6, 2017):
I can confirm this for Debian Stretch KDE. Also for me only Thunderbird and Okular are affected.
With Okular, but as far as I remember not with Thunderbird, I have the same issue on Debian Jessie Mate.
When I start Okular with
firejail --trace okularand close the window, the application keeps running until I press Ctrl+C:If the first "hanging" instance is not terminated, I can launch a normal behaving second one, and the output of
firejail --treethen looks likeon Debian Jessie Mate.
Unfortunately I don't see this always, and I didn't yet recognize a trigger.
@curiosity-seeker commented on GitHub (Jul 17, 2017):
@rekixex : It doesn't happen anymore for me with Okular. Note that I'm using v. 1.0.3 with KDE Frameworks 5.36.0 and Qt 5.7.1 on Fedora 26. And I haven't observed this problem for Thunderbird anymore, either (v. 52.2.1).
However, I'm using a modified profile for both applications. For Thunderbird:
And for Okular:
Btw., in Thunderbird I selected xdg-open as the default helper application for all file types.
@curiosity-seeker commented on GitHub (Jul 19, 2017):
@rekixex : I think it's not surprising that you cannot access
/etc/firejail/okular.profile. You're using the Firejail git version which installs by default to/usr/local. Whereas I install it using./configure --prefix=/usrHence, the path to your profiles is different (I believe it is
/usr/local/etc/firejail/okular.profile).Anyways, can you show us what
firejail --treereports when you start Okular and when you close it?@smitsohu commented on GitHub (Oct 11, 2017):
Specifically regarding Okular: It should help launching kdeinit4 once normally, outside a sandbox. This could be done for example during session startup.@smitsohu commented on GitHub (Oct 12, 2017):
Specifically regarding Okular: It should help to launch kdeinit4 inside a Firejail sandbox, and keep this instance running in the background. This could be done for example during session startup.
EDIT: Admittedly this "solution" is not very different from what was reported here as bug, but it was suggested with #1599 in mind. It has some advantage when not all KDE apps run in Firejail automatically, and it allows to confine the process better through a tailored profile (that still needs to be written).
@chiraag-nataraj commented on GitHub (May 21, 2019):
I don't really think we have a proper solution for this besides working around things on an app-specific level. I'll close this for now since it feels like we should be targeting known offenders, as it were, in separate issues (if people are running into them). Feel free to re-open if you feel that we should attempt to solve this more generally.