Rewrites pinentry
find code to be more resilient
#543
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change rewrites the custom
pinentry
search code to instead be a modified form of the standard/usr/bin/pinetry
fallback script. The prior behaviour could not handle cases where apinentry
executable existed but was not actually usable. Now it checks usingldd
for if an executable is functional or not. Additionally rewritten to be more clear and easier to extend with newerpinentry
backends.make test
was ran, and it passed the main usability tests for password entry. As my testing system uses swap it failed during the KDF test from an error from swap being enabled; I did not attempt further tests with swap disabled.This partially fixes Issue #542.
Note: This adds a new dependency on
ldd
. For systems withoutldd
installed (such asmusl
systems) they either need to create a compatibilityldd
symlink / script, or we need to check forld-musl-$ARCH.so
and use it ourselves ifldd
does not exist.