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

create_detached_idmapped_mount: avoid double close #893

Merged
merged 1 commit into from
May 25, 2024

Conversation

hallyn
Copy link
Member

@hallyn hallyn commented May 25, 2024

fd_userns is defiend ad __do_close, so if it is not -EBADF, it will be closed on exit. So we need to either set it to -EBADF after closing it, or just not manually close it.

My mistake in reviewing the previous patch.

@hallyn hallyn requested a review from stgraber as a code owner May 25, 2024 14:57
fd_userns is defined as __do_close, so if it is not -EBADF, it will
be closed on exit.  So we need to either set it to -EBADF after closing
it, or just not manually close it.

My mistake in reviewing the previous patch.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
@hallyn hallyn force-pushed the 2024-05-25/avoiddoubleclose branch from f533fbc to 1b7da94 Compare May 25, 2024 14:57
@brauner brauner merged commit 3f91a7c into lxc:main May 25, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants