Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ${HOME} and ~ in --netfilter= #6032

Closed
michelesr opened this issue Oct 3, 2023 · 0 comments · Fixed by #6109
Closed

Support ${HOME} and ~ in --netfilter= #6032

michelesr opened this issue Oct 3, 2023 · 0 comments · Fixed by #6109
Labels
enhancement New feature request

Comments

@michelesr
Copy link
Contributor

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
@rusty-snake rusty-snake added the enhancement New feature request label Oct 7, 2023
kmk3 added a commit to kmk3/firejail that referenced this issue Nov 27, 2023
This includes macros such as `${HOME}` and `${RUNUSER}`.

Commands:

* --chroot=
* --netfilter=
* --netfilter6=
* --trace=

Closes netblue30#6032.

Reported-by: @michelesr
kmk3 added a commit that referenced this issue Jan 4, 2024
@kmk3 kmk3 changed the title ${HOME} and ~ not supported in netfilter file name Support ${HOME} and ~ in --netfilter= Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
Status: Done (on RELNOTES)
Development

Successfully merging a pull request may close this issue.

2 participants