Skip to content

Conversation

@bjorn3
Copy link
Collaborator

@bjorn3 bjorn3 commented Nov 26, 2025

This is still missing tests.

Fixes #1249

@bjorn3 bjorn3 added this to the askpass milestone Nov 26, 2025
@bjorn3 bjorn3 force-pushed the askpass branch 6 times, most recently from a167ef0 to 0724c3b Compare December 2, 2025 09:18
This makes it slightly easier to add options in the future.
In practice I didn't observe any dangerous fds leaking to the editor
process. Only the sockets used for communication with the parent process
got leaked. The parent process already does not blindly trust writes to
those sockets, so leaking them is fine. Still as a defence-in-depth when
for example a PAM module forgets to close a file, add the missing
mark_fds_as_cloexec anyway.
@bjorn3 bjorn3 marked this pull request as ready for review December 3, 2025 10:11
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.

Add support for -A (askpass) commandline switch

1 participant