[GH-ISSUE #5235] Whitelist/blacklist paths while running #2927

Closed
opened 2026-05-05 09:35:27 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @MuhammedZakir on GitHub (Jul 5, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5235

Is it possible? Something like:

firejail --modify=<pid|name> [--whitelist-dir=dir1,dir2,...,dirN] [--whitelist-file=file1,file2,...,flleN]

It would even better if globbing is supported for those args.


I think this may have been asked in the past, but a quick search didn't yield any result. So created this.

Originally created by @MuhammedZakir on GitHub (Jul 5, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5235 Is it possible? Something like: ``` firejail --modify=<pid|name> [--whitelist-dir=dir1,dir2,...,dirN] [--whitelist-file=file1,file2,...,flleN] ``` It would even better if globbing is supported for those args. --- I think this may have been asked in the past, but a quick search didn't yield any result. So created this.
gitea-mirror 2026-05-05 09:35:27 -06:00
Author
Owner

@rusty-snake commented on GitHub (Jul 5, 2022):

AFAIK this isn't possible. And my playing with sudo nsenter --wd=/ --mount=/proc/${child_pid}/ns/mnt mount --bind ./$HOME/.foo /$HOME/.foo "confirmed" that.

<!-- gh-comment-id:1175325257 --> @rusty-snake commented on GitHub (Jul 5, 2022): AFAIK this isn't possible. And my playing with `sudo nsenter --wd=/ --mount=/proc/${child_pid}/ns/mnt mount --bind ./$HOME/.foo /$HOME/.foo` "confirmed" that.
Author
Owner

@rusty-snake commented on GitHub (Aug 30, 2022):

Closing until somebody has an idea how to do this without reimplementing kernel code in the userspace.

<!-- gh-comment-id:1231486719 --> @rusty-snake commented on GitHub (Aug 30, 2022): Closing until somebody has an idea how to do this without reimplementing kernel code in the userspace.
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#2927
No description provided.