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

fix env-vars beeing written to /tmp #11713

Merged
merged 1 commit into from
Oct 22, 2024
Merged

fix env-vars beeing written to /tmp #11713

merged 1 commit into from
Oct 22, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Oct 18, 2024

Current status: works on my machine

This overall seems like insecure tmp file handling to me. Because other users could replace files in /tmp with a symlink and make the nix-shell override other files.

fixes #11470

@Mic92 Mic92 marked this pull request as ready for review October 21, 2024 12:47
@Mic92 Mic92 added the backport 2.24-maintenance Automatically creates a PR against the branch label Oct 21, 2024
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Oct 22, 2024
@Mic92 Mic92 force-pushed the env-vars branch 2 times, most recently from 6316c5a to 5d83991 Compare October 22, 2024 07:33
This overall seems like insecure tmp file handling to me. Because other
users could replace files in /tmp with a symlink and make the nix-shell
override other files.

fixes NixOS#11470
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Oct 22, 2024
@Mic92
Copy link
Member Author

Mic92 commented Oct 22, 2024

Added a test.

@edolstra edolstra merged commit c2cf01a into NixOS:master Oct 22, 2024
11 checks passed
edolstra added a commit that referenced this pull request Oct 22, 2024
…1713

fix env-vars beeing written to `/tmp` (backport #11713)
@Mic92 Mic92 deleted the env-vars branch October 22, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.24-maintenance Automatically creates a PR against the branch store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/tmp/env-vars not cleaned up, and owned by root
3 participants