[PR #2138] [MERGED] Fix incorrect --list and --tree output under certain circumstances #4184

Closed
opened 2026-05-05 10:15:17 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/2138
Author: @crass
Created: 10/5/2018
Status: Merged
Merged: 10/6/2018
Merged by: @netblue30

Base: masterHead: fix-fj-proc-detect


📝 Commits (1)

  • d2367d7 Firejail should look for processes with names exactly named "firejail" to avoid accounting for processes with a "firejail" prefix.

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 src/lib/pid.c (+5 -2)

📄 Description

Firejail should look for processes with names exactly named "firejail" to avoid accounting for processes with a "firejail" prefix. For example, I have a script named firejail-bridged.sh which forks a firejail child. When it is running, firejail --list shows the script rather than the child firejail process and firejail --tree shows the process tree for the script and all its subprocesses.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/2138 **Author:** [@crass](https://github.com/crass) **Created:** 10/5/2018 **Status:** ✅ Merged **Merged:** 10/6/2018 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `fix-fj-proc-detect` --- ### 📝 Commits (1) - [`d2367d7`](https://github.com/netblue30/firejail/commit/d2367d775522bb6d7a5f23a759b05b9eda89a89d) Firejail should look for processes with names exactly named "firejail" to avoid accounting for processes with a "firejail" prefix. ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/pid.c` (+5 -2) </details> ### 📄 Description Firejail should look for processes with names exactly named "firejail" to avoid accounting for processes with a "firejail" prefix. For example, I have a script named `firejail-bridged.sh` which forks a `firejail` child. When it is running, `firejail --list` shows the script rather than the child firejail process and `firejail --tree` shows the process tree for the script and all its subprocesses. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:15:17 -06:00
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#4184
No description provided.