Skip to content

Avoid file descriptor leaks in multi-threaded applications#339

Merged
stevegrubb merged 2 commits intolinux-audit:masterfrom
cgzones:p_cloexec
Nov 4, 2023
Merged

Avoid file descriptor leaks in multi-threaded applications#339
stevegrubb merged 2 commits intolinux-audit:masterfrom
cgzones:p_cloexec

Conversation

@cgzones
Copy link
Copy Markdown
Contributor

@cgzones cgzones commented Oct 31, 2023

No description provided.

@stevegrubb
Copy link
Copy Markdown
Contributor

This patch seems to have been filed out of order or written independently of the other pull requests. It has conflicts that need to be resolved. Do you want to rebase the patch on the current master branch and resubmit?

libaudit may be called from a multi-threaded application.
Avoid leaking local file descriptors on a concurrent execve.
SOCK_CLOEXEC is supported since Linux 2.6.27.
@stevegrubb
Copy link
Copy Markdown
Contributor

Thanks for fixing it up!

@stevegrubb stevegrubb merged commit 2663987 into linux-audit:master Nov 4, 2023
@cgzones cgzones deleted the p_cloexec branch November 4, 2023 19:48
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