mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #417] Cleanup environment variables #303
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#303
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 @FedericoCeratto on GitHub (Apr 7, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/417
firejail should be able to unset environment variables on start, maybe with a way to whitelist some variables.
Steps to reproduce:
export HELLO=WORLD; firejail env@netblue30 commented on GitHub (Apr 7, 2016):
I'll bring in whitelisting for env variables.
@netblue30 commented on GitHub (Jul 9, 2016):
I added --rmenv=name to remove unwanted variables
@ndbroadbent commented on GitHub (Apr 3, 2018):
I am running a web application where my secrets (e.g. API keys) are stored in environment variables. I wanted to use firejail to sandbox some shell commands, and they don't need access to any of these variables.
I figured out that you can clear all environment variables with
env -i:You can also whitelist certain variables if you specify them after
env -i:(Just posting a comment here in case someone else sees this.)