-
Notifications
You must be signed in to change notification settings - Fork 570
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
Unset TMP if it doesn't exist inside of sandbox #4151
Labels
enhancement
New feature request
Comments
We have already code for firejail/src/firejail/fs_whitelist.c Lines 780 to 796 in 0c1b99f
Just add |
kmk3
changed the title
[Feature] Unset TMP if it doesn't exist inside of sandbox
Unset TMP if it doesn't exist inside of sandbox
Feb 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have this weird setup where the
TMP
env var is set to/tmp/$USER
and that directory is automatically created. This causes sandboxed apps to not work if the profile usesprivate-tmp
, and the error messages the app generates aren't necessarily useful. I solved the problem by making a wrapper script forfirejail
which unsets TMP, but other users might have TMP point to a non-standard location and have the sandboxed app not give them and useful error messages, leaving them confused frustrated.One way to solve the problem would be, if
TMP
is set, to check if what it points to exists within the sandbox, and unset the var if it doesn't.The text was updated successfully, but these errors were encountered: