[GH-ISSUE #838] Whitelist only specified input files #569

Open
opened 2026-05-05 06:10:59 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @valoq on GitHub (Oct 6, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/838

Is there a way to whitelist only those file that are used as arguments for the command?

Like: "firejail programm fileToOpen"

That way it would be possible to block access to the complete filesystem except for the specified file.

Originally created by @valoq on GitHub (Oct 6, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/838 Is there a way to whitelist only those file that are used as arguments for the command? Like: "firejail programm fileToOpen" That way it would be possible to block access to the complete filesystem except for the specified file.
gitea-mirror added the
enhancement
label 2026-05-05 06:10:59 -06:00
Author
Owner

@manevich commented on GitHub (Oct 6, 2016):

Currently no, but I am working on this now. I will send pull request when I am done (Friday or Sunday I think).

<!-- gh-comment-id:252014954 --> @manevich commented on GitHub (Oct 6, 2016): Currently no, but I am working on this now. I will send pull request when I am done (Friday or Sunday I think).
Author
Owner

@valoq commented on GitHub (Oct 6, 2016):

Great, thanks

<!-- gh-comment-id:252016120 --> @valoq commented on GitHub (Oct 6, 2016): Great, thanks
Author
Owner

@valoq commented on GitHub (Oct 26, 2016):

Any updates on this?

<!-- gh-comment-id:256363043 --> @valoq commented on GitHub (Oct 26, 2016): Any updates on this?
Author
Owner

@manevich commented on GitHub (Oct 26, 2016):

Sorry, I have had no spare time this month.
Putting current version here.
It's seems working, but still needs to be cleaned, tested thoughtfully, and documented.

<!-- gh-comment-id:256485924 --> @manevich commented on GitHub (Oct 26, 2016): Sorry, I have had no spare time this month. Putting current version [here](https://github.com/manevich/firejail/commit/3d2a4f5b1971df7075dfddc8f41d8ece5f28bddc). It's seems working, but still needs to be cleaned, tested thoughtfully, and documented.
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 25, 2018):

The easiest way (currently) is to setup a wrapper script. I might look into doing this if @manevich didn't merge their changes.

<!-- gh-comment-id:407929749 --> @chiraag-nataraj commented on GitHub (Jul 25, 2018): The easiest way (currently) is to setup a wrapper script. I might look into doing this if @manevich didn't merge their changes.
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 25, 2018):

I think the tricky (with regards to security) part of this is that we'd have to (safely) parse the child program's argument list, which brings with it a whole host of issues (potentially).

<!-- gh-comment-id:407930048 --> @chiraag-nataraj commented on GitHub (Jul 25, 2018): I think the tricky (with regards to security) part of this is that we'd have to (safely) parse the child program's argument list, which brings with it a whole host of issues (potentially).
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#569
No description provided.