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

repo: Add missing O_CLOEXEC #28

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

cgwalters
Copy link
Collaborator

We're pervasively missing this and O_CLOEXEC is IMO quite important for anything caring about security. Rust notably does not automatically close fds with std::process::Command.

Now...digging into this I do think we should take a dep on cap-std{,-ext} but that's a distinct thread.

We're pervasively missing this and O_CLOEXEC is IMO quite important
for anything caring about security. Rust notably does *not*
automatically close fds with `std::process::Command`.

Now...digging into this I do think we should take a dep on
cap-std{,-ext} but that's a distinct thread.

Signed-off-by: Colin Walters <[email protected]>
Copy link
Collaborator

@allisonkarlitskaya allisonkarlitskaya left a comment

Choose a reason for hiding this comment

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

Thanks. There are probably about 1000 other places for this, too.

@allisonkarlitskaya allisonkarlitskaya merged commit 1431ece into containers:main Nov 7, 2024
2 checks passed
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.

2 participants