mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6831] Allow interpolation in env values: env XDG_CACHE_HOME=${HOME}/.cache-firejail #3390
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3390
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @powerman on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6831
Is your feature request related to a problem? Please describe.
I'd like to deny access to data in
~/.cachefrom a sandbox, but I still wanna use persistent cache (not tmpfs) in that sandbox.I've tried to use
env XDG_CACHE_HOME=${HOME}/.cache-firejailbut looks like there is no ${HOME} interpolation forenvdirective.Another related issue - I'd like to use current firejail
${PROFILE}name in some other places, e.g.:Describe the solution you'd like
${PATH}because it's a bit magical, while all others are just constant strings).${PROFILE}var with current profile name (name of first loaded profile file without.profileextension).Describe alternatives you've considered
I've to run
firejail --profile=example --env=XDG_CACHE_HOME="${HOME}/.cache-example" …plus hardcode profile's name insideexample.profileseveral times.Environment
uname -srm): Linux 6.12.31-gentoo x86_64firejail --version): firejail version 0.9.74Compile time support:
- always force nonewprivs support is disabled
- AppArmor support is disabled
- AppImage support is enabled
- chroot support is enabled
- D-BUS proxy support is enabled
- file transfer support is enabled
- IDS support is disabled
- Landlock support is enabled
- networking support is enabled
- output logging is enabled
- overlayfs support is disabled
- private-home support is enabled
- private-lib support is disabled
- private-cache and tmpfs as user enabled
- sandbox check is enabled
- SELinux support is disabled
- user namespace support is enabled
- X11 sandboxing support is enabled