[GH-ISSUE #3071] Allow "$HOME" along with "${HOME}" in profiles or signal error #1924

Closed
opened 2026-05-05 08:35:35 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @jonleivent on GitHub (Dec 3, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3071

I have made this same error several times now:

blacklist $HOME/something-private

silently doesn't blacklist anything. No error is printed. Of course:

blacklist ${HOME}/something-private

and

blacklist ~/something-private

both work. I would greatly appreciate it if firejail either accepted $HOME in such contexts, or signaled an error. Yes, I know everyone is entitled to their own DSL...

Originally created by @jonleivent on GitHub (Dec 3, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/3071 I have made this same error several times now: `blacklist $HOME/something-private` silently doesn't blacklist anything. No error is printed. Of course: `blacklist ${HOME}/something-private` and `blacklist ~/something-private` both work. I would greatly appreciate it if firejail either accepted $HOME in such contexts, or signaled an error. Yes, I know everyone is entitled to their own DSL...
gitea-mirror 2026-05-05 08:35:35 -06:00
Author
Owner

@netblue30 commented on GitHub (Oct 1, 2020):

Printing an error:

$ cat p.profile
blacklist $HOME/.ssh

$ firejail --profile=p
Reading profile p
Parent pid 4893, child pid 4895
Error: $HOME is not allowed in profile files, please replace it with ${HOME}
Error: proc 4893 cannot sync with peer: unexpected EOF
Peer 4895 unexpectedly exited with status 1
<!-- gh-comment-id:702107703 --> @netblue30 commented on GitHub (Oct 1, 2020): Printing an error: ````` $ cat p.profile blacklist $HOME/.ssh $ firejail --profile=p Reading profile p Parent pid 4893, child pid 4895 Error: $HOME is not allowed in profile files, please replace it with ${HOME} Error: proc 4893 cannot sync with peer: unexpected EOF Peer 4895 unexpectedly exited with status 1
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#1924
No description provided.