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

Use tempdir_in OUT_DIR to prevent cross-fs-unlink #395

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

mothran
Copy link
Contributor

@mothran mothran commented Feb 22, 2023

By creating a tempdir within the $OUT_DIR we can prevent cross-fs unlink issues if someone has /tmp mounted as tmpfs or on a different filesystem.

@flaub
Copy link
Member

flaub commented Feb 22, 2023

You might need to use the same technique here: https://github.com/risc0/risc0/blob/main/risc0/build_kernel/src/lib.rs#L224

@mothran
Copy link
Contributor Author

mothran commented Feb 22, 2023

You might need to use the same technique here: https://github.com/risc0/risc0/blob/main/risc0/build_kernel/src/lib.rs#L224

Good catch, I will fix that one and do a once over for other tmpdirs that I might have missed.

@mothran mothran merged commit 905b194 into main Feb 22, 2023
@mothran mothran deleted the parker/cross-link-fix branch February 22, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants