-
Notifications
You must be signed in to change notification settings - Fork 567
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
--build clears the environment #4460
Comments
firejail applies a filtered set of environment variables before handing off to fbuilder which takes care of the actual profile building. fbuilder itself does nothing to restore the original environment before starting the sandbox via firejail Lines 925 to 947 in 04fba33
Using However I don't understand what the intention for handing over a sanitized environment for fbuilder actually is. If restoring the original environment from fbuilder should be more desirable, the solution doesn't seem that trivial. |
Maybe it is just a code-path forgotten in #3322. @topimiettinen? |
I haven't used |
Note: They are added in the order that the issues were fixed/closed. Note2: The issues were found through the following url: https://github.com/netblue30/firejail/issues?q=is%3Aclosed+label%3Abug+-label%3Asecurity+closed%3A%3E2021-06-29+ The date used is the release date of 0.9.66, so in theory the query should return every bug closed after that. Security-related issues are excluded because they will be added separately. Note3: All issues other than netblue30#4328 were fixed before 0.9.68rc1. Relates to netblue30#2758 netblue30#4235 netblue30#4328 netblue30#4387 netblue30#4395 netblue30#4460 netblue30#4467 netblue30#4558 netblue30#4560 netblue30#4586.
Bug and expected behavior
--build
clears the env. Only a few firejail set variables and LANG, PATH, DISPLAY and SHELL are kept.This makes
--build
unusable for programs which assume variables like HOME are set (os.environ["HOME"]
).Variables like HOME are still present.
Reproduce
Steps to reproduce the behavior:
firejail --build printenv
Environment
Checklist
https://github.com/netblue30/firejail/issues/1139
)--profile=PROFILENAME
is used to set the right profile.LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM
to get english error-messages.browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.The text was updated successfully, but these errors were encountered: