Repository navigation
Conversation
chessing234
left a comment
There was a problem hiding this comment.
retry helps a busy reader after enroll, but it also retries a real verify mismatch up to 5× — user puts the wrong finger, waits ~2.5s, then pam still gets skipped. if fprintd distinguishes busy vs no-match, gate the sleep on that; otherwise maybe 2 tries is enough.
chessing234
left a comment
There was a problem hiding this comment.
retrying every verify failure 5× punishes a wrong swipe. settle with a short sleep and/or retry only on claim/busy errors from #10091, not on verify-no-match.
a9bfffd to
0b812c4
Compare
cc33db0 to
bd8fa74
Compare
|
Rebased onto current Verify retry now settles once, then retries only claim/busy/already-in-use errors; verify-no-match fails immediately. Covered by Tests: |
|
Verified against current quattro (fail-then-pass on scoped shell tests). Ready for maintainer review. Scoped: fingerprint-verify-settle-test (claim/busy retry only). |
|
Reviewed at What was checked
What it can't show The test stubs @m4dmurd0c, could you run this exact commit on the E550? curl -fsSL https://raw.githubusercontent.com/kvnloo/omarchy/bd8fa748829f76383f747b803fee6a582ae1a0a8/bin/omarchy-setup-security-fingerprint -o /tmp/omarchy-setup-security-fingerprint
bash /tmp/omarchy-setup-security-fingerprint
grep -r fprintd /etc/pam.d/Like current No other open pull request fixes #10091. #13467, #13542 and #13612 change the same verify step for a different case (a print that was already enrolled), so whichever lands second will need a small rebase. |
[Medium impact] The PR appears safe to merge; no actionable new issues remain. SummaryAdds a short wait after enrollment and retries fingerprint verification up to five times when the reader cannot be claimed.
|
Keep default SIGINT behavior and verify cancellation after a bounded verification-start handshake.
omacom#15512 replaced the single fprintd-verify with a pipe through verify_progress, which turns fprintd's results into guidance. The retry now tees into that filter instead of replacing it, so each attempt shows the same guidance and a claim failure is still printed for the user. The settle test follows setup as quattro now runs it: it stubs the sudo -n check and the busctl reader lookups, so it never reaches the worker's own sudo or system bus, and it expects setup to exit 1 when verification fails, as a1fa8cd made it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Re-reviewed at What changed in the merge
What was checked
The other fix for #10091 #14965 fixes the same bug: it waits 5s instead of 0.5s, makes 3 attempts, and prints its own message when the reader never frees up. This pull request is older and catches the same claim failure, so it is the one to carry forward. Codex Medium, asked separately, reached the same answer. #14965 does have one thing worth adopting here. When every attempt fails to claim the reader, this pull request still prints "Verification failed. You may want to try enrolling again", which is the advice #10091 says cannot help. #14965 says instead that the print was enrolled, the reader could not be opened, and nothing was configured. That message is to be folded in from #14965's side. Waiting on @m4dmurd0c, could you run this exact commit on the E550? It calls curl -fsSL https://raw.githubusercontent.com/kvnloo/omarchy/0ce7c38faa19b49afca4e12d11cb929a9aca16f9/bin/omarchy-setup-security-fingerprint -o /tmp/omarchy-setup-security-fingerprint
bash /tmp/omarchy-setup-security-fingerprint
grep -r fprintd /etc/pam.d/Like |
Summary
Fixes #10091.
Verification