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 #10747 #10758

Merged
merged 2 commits into from
May 22, 2024
Merged

Fix #10747 #10758

merged 2 commits into from
May 22, 2024

Conversation

Ericson2314
Copy link
Member

Motivation

Context

Fix #10747

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@@ -580,7 +580,12 @@ struct curlFileTransfer : public FileTransfer
#endif

#if __linux__
unshareFilesystem();
try {
tryUnshareFilesystem();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the try/catch be moved inside tryUnshareFilesystem() since it claims to be best-effort?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edolstra This try-catch-rethrow is solely to add some error context. The actual error handling still happens in the caller.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it should never throw an exception? Are there any errors that should not be ignored?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure, but I am generally uncomfortable with ignoring errors without a whitelist.

@Ericson2314 Ericson2314 merged commit 859e55d into NixOS:master May 22, 2024
9 checks passed
@Ericson2314 Ericson2314 deleted the fix-10747 branch May 22, 2024 20:59
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.

run nix in a non root container in openshift - restricted SCC
2 participants