[GH-ISSUE #677] --blacklist=/proc does not blacklist all of /proc #465

Closed
opened 2026-05-05 05:54:52 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Fred-Barclay on GitHub (Aug 1, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/677

When I try firejail --blacklist=/proc and then ls /proc there are still 58 files and directories visible inside the sandbox. It's certainly a lot fewer than the 244 files/directories that are visible outside the sandbox, but is this normal/expected?
Blacklisting practically any other directory hides the contents entirely, unless I blacklist something important like /bin which won't allow /bin/bash to run inside firejail.

Originally created by @Fred-Barclay on GitHub (Aug 1, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/677 When I try `firejail --blacklist=/proc` and then `ls /proc` there are still 58 files and directories visible inside the sandbox. It's certainly a lot fewer than the 244 files/directories that are visible outside the sandbox, but is this normal/expected? Blacklisting practically any other directory hides the contents entirely, unless I blacklist something important like /bin which won't allow /bin/bash to run inside firejail.
gitea-mirror 2026-05-05 05:54:52 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@reinerh commented on GitHub (Aug 1, 2016):

A lot of /proc files are actually needed by many programs to work correctly.

<!-- gh-comment-id:236681118 --> @reinerh commented on GitHub (Aug 1, 2016): A lot of /proc files are actually needed by many programs to work correctly.
Author
Owner

@netblue30 commented on GitHub (Aug 3, 2016):

Fixed. Keep an eye on closing the sandbox, my monitoring program depends on reading /proc to see if the sandbox is still alive. You'll get some error messages when you close the program, just disregard them for now.

<!-- gh-comment-id:237222022 --> @netblue30 commented on GitHub (Aug 3, 2016): Fixed. Keep an eye on closing the sandbox, my monitoring program depends on reading /proc to see if the sandbox is still alive. You'll get some error messages when you close the program, just disregard them for now.
Author
Owner

@Fred-Barclay commented on GitHub (Aug 11, 2016):

Forgot to say earlier... thanks, mate! 👍

<!-- gh-comment-id:239228319 --> @Fred-Barclay commented on GitHub (Aug 11, 2016): Forgot to say earlier... thanks, mate! :+1:
Author
Owner

@netblue30 commented on GitHub (Aug 11, 2016):

No problem.

<!-- gh-comment-id:239286149 --> @netblue30 commented on GitHub (Aug 11, 2016): No problem.
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#465
No description provided.