[GH-ISSUE #98] firejail --list and --tree do not show all sandboxed process names #59

Closed
opened 2026-05-05 04:55:10 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @curiosity-seeker on GitHub (Oct 25, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/98

I'm running several applications sandboxed with Firejail. Here's what KSysGuard shows:

firejail
where soffice.bin has a "zombie" status.

firejail --list shows:

722:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-dk --local-address=127.0.0.1:41 --user=
724:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-nl --local-address=127.0.0.1:40 --user=
728:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/unbound -d 
4089:xxx:/usr/bin/firejail thunderbird 
4492:xxx:/usr/bin/firejail firefox 
21067:

firejail --tree shows:

722:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-dk --local-address=127.0.0.1:41 --user=
  744:nobody:/usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-dk --local-address=127.0.0.1:41 --user=nobody 
724:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-nl --local-address=127.0.0.1:40 --user=
  747:nobody:/usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-nl --local-address=127.0.0.1:40 --user=nobody 
728:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/unbound -d 
  746:unbound:/usr/bin/unbound -d 
4089:xxx:/usr/bin/firejail thunderbird 
  4090:xxx:thunderbird 
4492:xxx:/usr/bin/firejail firefox 
  4493:xxx:/bin/bash /usr/local/bin/firefox 
    4494:xxx:firejail --profile=/home/xxx/.config/firejail/firefox.profile /usr/lib/firefox/firefox 
      4495:xxx:/usr/lib/firefox/firefox 
        4537:xxx:/usr/lib/mozilla/kmozillahelper 
21067:
  21068:
    21085:
      21086: (zombie)

Thus, for libreoffice only the PIDs are shown but not the process names. I had libreoffice started by clicking an .ods file in the krusader filemanager.

Originally created by @curiosity-seeker on GitHub (Oct 25, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/98 I'm running several applications sandboxed with Firejail. Here's what KSysGuard shows: ![firejail](https://cloud.githubusercontent.com/assets/14075215/10716628/5056a1de-7b3f-11e5-9c1f-f53bc2571c96.png) where soffice.bin has a "zombie" status. firejail --list shows: ``` 722:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-dk --local-address=127.0.0.1:41 --user= 724:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-nl --local-address=127.0.0.1:40 --user= 728:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/unbound -d 4089:xxx:/usr/bin/firejail thunderbird 4492:xxx:/usr/bin/firejail firefox 21067: ``` firejail --tree shows: ``` 722:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-dk --local-address=127.0.0.1:41 --user= 744:nobody:/usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-dk --local-address=127.0.0.1:41 --user=nobody 724:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-nl --local-address=127.0.0.1:40 --user= 747:nobody:/usr/bin/dnscrypt-proxy --ephemeral-keys --resolver-name=dnscrypt.eu-nl --local-address=127.0.0.1:40 --user=nobody 728:root:/usr/bin/firejail --profile=/home/xxx/.config/firejail/dnsmasq.profile /usr/bin/unbound -d 746:unbound:/usr/bin/unbound -d 4089:xxx:/usr/bin/firejail thunderbird 4090:xxx:thunderbird 4492:xxx:/usr/bin/firejail firefox 4493:xxx:/bin/bash /usr/local/bin/firefox 4494:xxx:firejail --profile=/home/xxx/.config/firejail/firefox.profile /usr/lib/firefox/firefox 4495:xxx:/usr/lib/firefox/firefox 4537:xxx:/usr/lib/mozilla/kmozillahelper 21067: 21068: 21085: 21086: (zombie) ``` Thus, for libreoffice only the PIDs are shown but not the process names. I had libreoffice started by clicking an .ods file in the krusader filemanager.
gitea-mirror 2026-05-05 04:55:10 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Oct 25, 2015):

Did soffice.bin crash?

<!-- gh-comment-id:150952183 --> @netblue30 commented on GitHub (Oct 25, 2015): Did soffice.bin crash?
Author
Owner

@curiosity-seeker commented on GitHub (Oct 25, 2015):

No, it didn't. It was still running when I made those screenshots. FWIW, it was started with a start script in /usr/local/bin (discussed in another issue here):

firejail --profile=/home/xxx/.config/firejail/libreoffice.profile /usr/bin/libreoffice "$@"

<!-- gh-comment-id:150954157 --> @curiosity-seeker commented on GitHub (Oct 25, 2015): No, it didn't. It was still running when I made those screenshots. FWIW, it was started with a start script in /usr/local/bin (discussed in another issue here): `firejail --profile=/home/xxx/.config/firejail/libreoffice.profile /usr/bin/libreoffice "$@"`
Author
Owner

@netblue30 commented on GitHub (Oct 25, 2015):

Definitely a bug, I'll have to fix it. Thanks!

<!-- gh-comment-id:150956576 --> @netblue30 commented on GitHub (Oct 25, 2015): Definitely a bug, I'll have to fix it. Thanks!
Author
Owner

@netblue30 commented on GitHub (Oct 31, 2015):

On Debian jessie seems to be working fine:

netblue@debian:~$ firejail --tree
1396:netblue:firejail --chroot=/media/netblue/debian/ 
  1398:netblue:/bin/bash 
4031:netblue:firejail --debug --name=browser --net=eth0 --iprange=192.168.1.50 
  4032:netblue:/bin/sh -c /usr/lib/iceweasel/iceweasel  
    4044:netblue:/usr/lib/iceweasel/iceweasel 
      5230:netblue:/usr/lib/iceweasel/plugin-container /usr/lib/flashplugin-non
5436:netblue:firejail /usr/bin/libreoffice --writer file:///home/netblue/t.odt 
  5437:netblue:/usr/lib/libreoffice/program/oosplash --writer file:///home/netb
    5454:netblue:/usr/lib/libreoffice/program/soffice.bin --writer file:///home

Do you still have the problem?

<!-- gh-comment-id:152734907 --> @netblue30 commented on GitHub (Oct 31, 2015): On Debian jessie seems to be working fine: ``` netblue@debian:~$ firejail --tree 1396:netblue:firejail --chroot=/media/netblue/debian/ 1398:netblue:/bin/bash 4031:netblue:firejail --debug --name=browser --net=eth0 --iprange=192.168.1.50 4032:netblue:/bin/sh -c /usr/lib/iceweasel/iceweasel 4044:netblue:/usr/lib/iceweasel/iceweasel 5230:netblue:/usr/lib/iceweasel/plugin-container /usr/lib/flashplugin-non 5436:netblue:firejail /usr/bin/libreoffice --writer file:///home/netblue/t.odt 5437:netblue:/usr/lib/libreoffice/program/oosplash --writer file:///home/netb 5454:netblue:/usr/lib/libreoffice/program/soffice.bin --writer file:///home ``` Do you still have the problem?
Author
Owner

@curiosity-seeker commented on GitHub (Oct 31, 2015):

Do you still have the problem?

No, strangely enough I can't reproduce at the moment. I had observed the same phenomenon in the past days, but right now I'm not able to demonstrate it. Sorry - I'll keep watching it.

However, I still see a zombie process. Example:

10697:xxx:firejail --profile=/home/xxx/.config/firejail/libreoffice.profile /usr/bin/libreoffice --writer /home/xxx/Dokumente/Dacia.odt 
  10698:xxx:/usr/lib/libreoffice/program/oosplash --writer /home/xxx/Dokumente/Dacia.odt 
    10715:xxx:/usr/lib/libreoffice/program/soffice.bin --writer /home/xxx/Dokumente/Dacia.odt --splash-pipe=5 
      10716: (zombie)

This is what pstree shows (krusader's parent process is kdeinit5):


       │          ├─krusader─┬─libreoffice───firejail───oosplash─┬─soffice.bin─┬─soffice.bin
        │          │          │                                   │             ├─{ICEConnectionWo}
        │          │          │                                   │             ├─{OfficeIPCThread}
        │          │          │                                   │             ├─{SelectionManage}
        │          │          │                                   │             └─{rtl_cache_wsupd}
        │          │          │                                   ├─{osl_executeProc}
        │          │          │                                   └─{rtl_cache_wsupd}
        │          │          ├─{QInotifyFileSys}
        │          │          └─{QProcessManager}

EDIT: ps auxf may be more informative

xxx      10650  0.3  0.7 476592 62084 ?        Sl   16:34   0:03  \_ /usr/bin/krusader -caption Krusader --icon krusader_user
xxx      10696  0.0  0.0  15356  2976 ?        S    16:34   0:00  |   \_ /bin/bash /usr/local/bin/libreoffice --writer /home/xxx/Dokumente/Dacia.odt
root     10697  0.0  0.0   7540  1744 ?        S    16:34   0:00  |       \_ firejail --profile=/home/xxx/.config/firejail/libreoffice.profile /usr/bin/libreoffice --writer /home/xxx/Dokume
xxx      10698  0.0  0.0 128084  5624 ?        Sl   16:34   0:00  |           \_ /usr/lib/libreoffice/program/oosplash --writer /home/xxx/Dokumente/Dacia.odt
xxx      10715  0.1  2.6 1277036 213604 ?      Sl   16:34   0:00  |               \_ /usr/lib/libreoffice/program/soffice.bin --writer /home/xxx/Dokumente/Dacia.odt --splash-pipe=5
xxx      10716  0.0  0.0      0     0 ?        Z    16:34   0:00  |                   \_ [soffice.bin] <defunct>
<!-- gh-comment-id:152744605 --> @curiosity-seeker commented on GitHub (Oct 31, 2015): > Do you still have the problem? No, strangely enough I can't reproduce at the moment. I had observed the same phenomenon in the past days, but right now I'm not able to demonstrate it. Sorry - I'll keep watching it. However, I still see a zombie process. Example: ``` 10697:xxx:firejail --profile=/home/xxx/.config/firejail/libreoffice.profile /usr/bin/libreoffice --writer /home/xxx/Dokumente/Dacia.odt 10698:xxx:/usr/lib/libreoffice/program/oosplash --writer /home/xxx/Dokumente/Dacia.odt 10715:xxx:/usr/lib/libreoffice/program/soffice.bin --writer /home/xxx/Dokumente/Dacia.odt --splash-pipe=5 10716: (zombie) ``` This is what pstree shows (krusader's parent process is kdeinit5): ``` │ ├─krusader─┬─libreoffice───firejail───oosplash─┬─soffice.bin─┬─soffice.bin │ │ │ │ ├─{ICEConnectionWo} │ │ │ │ ├─{OfficeIPCThread} │ │ │ │ ├─{SelectionManage} │ │ │ │ └─{rtl_cache_wsupd} │ │ │ ├─{osl_executeProc} │ │ │ └─{rtl_cache_wsupd} │ │ ├─{QInotifyFileSys} │ │ └─{QProcessManager} ``` EDIT: ps auxf may be more informative ``` xxx 10650 0.3 0.7 476592 62084 ? Sl 16:34 0:03 \_ /usr/bin/krusader -caption Krusader --icon krusader_user xxx 10696 0.0 0.0 15356 2976 ? S 16:34 0:00 | \_ /bin/bash /usr/local/bin/libreoffice --writer /home/xxx/Dokumente/Dacia.odt root 10697 0.0 0.0 7540 1744 ? S 16:34 0:00 | \_ firejail --profile=/home/xxx/.config/firejail/libreoffice.profile /usr/bin/libreoffice --writer /home/xxx/Dokume xxx 10698 0.0 0.0 128084 5624 ? Sl 16:34 0:00 | \_ /usr/lib/libreoffice/program/oosplash --writer /home/xxx/Dokumente/Dacia.odt xxx 10715 0.1 2.6 1277036 213604 ? Sl 16:34 0:00 | \_ /usr/lib/libreoffice/program/soffice.bin --writer /home/xxx/Dokumente/Dacia.odt --splash-pipe=5 xxx 10716 0.0 0.0 0 0 ? Z 16:34 0:00 | \_ [soffice.bin] <defunct> ```
Author
Owner

@netblue30 commented on GitHub (Oct 31, 2015):

OK, let's keep it open for now, maybe we can get to the bottom of it. What distro are you on?

<!-- gh-comment-id:152746219 --> @netblue30 commented on GitHub (Oct 31, 2015): OK, let's keep it open for now, maybe we can get to the bottom of it. What distro are you on?
Author
Owner

@curiosity-seeker commented on GitHub (Oct 31, 2015):

I'm using Manjaro (Arch derivative).

<!-- gh-comment-id:152746490 --> @curiosity-seeker commented on GitHub (Oct 31, 2015): I'm using Manjaro (Arch derivative).
Author
Owner

@ghost commented on GitHub (Nov 9, 2015):

Same problem with vlc, if the file name has spaces( doesn't have "zombie" though).

EDIT: Oups, no. It's when they are weird characters, like "ö è Ũ ĐỆ Ồ Ê Chinese characters...." anywhere, in the line that --tree/--list is supposed to show, that it doesn't show. And it's universal for all applications. Probably a unicode issue. I didn't reproduce the "zombie" though, this on 0.9.34.

firejail tools doesn't even show the PID.

<!-- gh-comment-id:154900642 --> @ghost commented on GitHub (Nov 9, 2015): Same problem with vlc, if the file name has spaces( doesn't have "zombie" though). EDIT: Oups, no. It's when they are weird characters, like "ö è Ũ ĐỆ Ồ Ê Chinese characters...." anywhere, in the line that --tree/--list is supposed to show, that it doesn't show. And it's universal for all applications. Probably a unicode issue. I didn't reproduce the "zombie" though, this on 0.9.34. firejail tools doesn't even show the PID.
Author
Owner

@netblue30 commented on GitHub (Nov 13, 2015):

I guess this is a more generic bug, I'll have to find a way to fix it.

<!-- gh-comment-id:156425880 --> @netblue30 commented on GitHub (Nov 13, 2015): I guess this is a more generic bug, I'll have to find a way to fix it.
Author
Owner

@netblue30 commented on GitHub (Nov 14, 2015):

@pirate486743186: following up on your idea with utf8, this is what I got:

$ firejail --tree
11204:
  11205:
    11206:
      11207:netblue:sleep 120 

All that is needed is an executable program with utf8 characters in the name. Thanks!

<!-- gh-comment-id:156600946 --> @netblue30 commented on GitHub (Nov 14, 2015): @pirate486743186: following up on your idea with utf8, this is what I got: ``` $ firejail --tree 11204: 11205: 11206: 11207:netblue:sleep 120 ``` All that is needed is an executable program with utf8 characters in the name. Thanks!
Author
Owner

@netblue30 commented on GitHub (Nov 14, 2015):

All fixed!

<!-- gh-comment-id:156604896 --> @netblue30 commented on GitHub (Nov 14, 2015): All fixed!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#59
No description provided.