Skip to content

Use PerlLIO_dup_cloexec in Perl_dirp_dup to set O_CLOEXEC - #23361

Merged
Leont merged 1 commit into
bleadfrom
leont/fdopendir-dup
Jun 9, 2025
Merged

Leont merged 1 commit into
bleadfrom
leont/fdopendir-dup

Conversation

@Leont

@Leont Leont commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

dup doesn't mark the new descriptor as close-on-exec, which can lead to a descriptor leaking to the new process.

dup doesn't mark the new descriptor as close-on-exec, which can lead to
a descriptor leaking to the new process.
@Leont
Leont merged commit d6f09a8 into blead Jun 9, 2025
@ap

ap commented Jun 12, 2025

Copy link
Copy Markdown
Contributor

@steve-m-hay This should be applied to maint-5.38 and maint-5.40 before the security release. (Aside from this we also need a perldelta entry before they can ship.)

@steve-m-hay

Copy link
Copy Markdown
Contributor

@steve-m-hay This should be applied to maint-5.38 and maint-5.40 before the security release. (Aside from this we also need a perldelta entry before they can ship.)

Cherry-picked as required.

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.

5 participants