[GH-ISSUE #5713] Add a macro for the current working directory #3071

Open
opened 2026-05-05 09:42:46 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @HanabishiRecca on GitHub (Mar 5, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5713

I did not found any mentions of this earlier, so here is my suggestion.

Sometimes you need to set rules involving current working dir.
E.g. via CLI you can do:

firejail --whitelist="${PWD}" ...

But I don't see any way to do it via config file.
I think the easiest solution will be introducing CWD/PWD variable for configs.

Relates to:

Originally created by @HanabishiRecca on GitHub (Mar 5, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/5713 _I did not found any mentions of this earlier, so here is my suggestion._ Sometimes you need to set rules involving current working dir. E.g. via CLI you can do: ``` firejail --whitelist="${PWD}" ... ``` But I don't see any way to do it via config file. I think the easiest solution will be introducing `CWD`/`PWD` variable for configs. Relates to: * #4090
gitea-mirror added the
enhancement
label 2026-05-05 09:42:46 -06:00
Author
Owner

@netblue30 commented on GitHub (Mar 13, 2023):

We'll go for it in the next release as "${CWD)"

<!-- gh-comment-id:1466637401 --> @netblue30 commented on GitHub (Mar 13, 2023): We'll go for it in the next release as "${CWD)"
Author
Owner

@HanabishiRecca commented on GitHub (Mar 13, 2023):

Awesome!

<!-- gh-comment-id:1466866785 --> @HanabishiRecca commented on GitHub (Mar 13, 2023): Awesome!
Author
Owner

@HanabishiRecca commented on GitHub (Mar 27, 2025):

So, no luck for this time.

<!-- gh-comment-id:2757967587 --> @HanabishiRecca commented on GitHub (Mar 27, 2025): So, no luck for this time.
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#3071
No description provided.