[GH-ISSUE #6032] Support ${HOME} and ~ in --netfilter= #3162

Closed
opened 2026-05-05 09:47:12 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @michelesr on GitHub (Oct 3, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6032

Description

${HOME} and ~ don't expand in the netfilter file name in a profile. It works when passed as cli argument --netfilter=~/somefile.

Error: invalid network filter file ~/somefile

While passing those paths in the cli with --netfilter=${HOME}/somefile or--netfilter=${HOME}/somefile

Steps to Reproduce

  1. create a profile with netfilter ~/somefile of netfilter ${HOME}/somefile
  2. run firejail with that profile

Expected behavior

The netfilter profile is loaded.

Actual behavior

Error: invalid network filter file ~/somefile

Environment:

  • firejail version 0.9.72
  • Arch Linux
Originally created by @michelesr on GitHub (Oct 3, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/6032 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description `${HOME}` and `~` don't expand in the `netfilter` file name in a profile. It works when passed as cli argument `--netfilter=~/somefile`. ``` Error: invalid network filter file ~/somefile ``` While passing those paths in the cli with `--netfilter=${HOME}/somefile` or`--netfilter=${HOME}/somefile` ### Steps to Reproduce 1) create a profile with `netfilter ~/somefile` of `netfilter ${HOME}/somefile` 2) run firejail with that profile ### Expected behavior The netfilter profile is loaded. ### Actual behavior ``` Error: invalid network filter file ~/somefile ``` Environment: - firejail version 0.9.72 - Arch Linux
gitea-mirror 2026-05-05 09:47:12 -06:00
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#3162
No description provided.