[GH-ISSUE #306] security: wrong behaviour of firejail for an empty whitelist #212

Closed
opened 2026-05-05 05:19:59 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @vn971 on GitHub (Feb 19, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/306

firejail does NOT enable its filesystem sandboxing mechanism if a whitelist filter does not correspond to already-existing files.

Steps to reproduce:

  • create a profile with whitelist ${HOME}/abcd1234
  • launch firejail --profile=new.profile ls -al /home/user
  • observe all files being visible to the sandboxed process

Expected:

  • the last command should only return .bashrc and .Xauthority. Because there are no matches between whitelist and files an the real FS, the expected behavior is to start with --private.
Originally created by @vn971 on GitHub (Feb 19, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/306 firejail does NOT enable its filesystem sandboxing mechanism if a `whitelist` filter does not correspond to already-existing files. Steps to reproduce: - create a profile with `whitelist ${HOME}/abcd1234` - launch `firejail --profile=new.profile ls -al /home/user` - observe all files being visible to the sandboxed process Expected: - the last command should only return .bashrc and .Xauthority. Because there are no matches between `whitelist` and files an the real FS, the expected behavior is to start with `--private`.
Author
Owner

@manevich commented on GitHub (Feb 20, 2016):

Looks like you are using old version, try one from git.
This behaviour already fixed, see issue #276.

<!-- gh-comment-id:186577821 --> @manevich commented on GitHub (Feb 20, 2016): Looks like you are using old version, try one from git. This behaviour already fixed, see issue #276.
Author
Owner

@vn971 commented on GitHub (Feb 20, 2016):

Indeed, I'm using the last stable release (.38). Will update. Thanks!

<!-- gh-comment-id:186585449 --> @vn971 commented on GitHub (Feb 20, 2016): Indeed, I'm using the last stable release (.38). Will update. Thanks!
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#212
No description provided.