Repository navigation
Include clamshell gate in lock-screen fingerprint PAM - #12914
chessing234 wants to merge 1 commit into
Conversation
setup_lock_fingerprint_pam was writing omarchy-lock-fingerprint without omarchy-hw-laptop-closed, and a re-run wiped any manually added gate. Share the same $fprintd_gate sudo/polkit already use.
|
Two integration issues remain at Verified: The setup wizard now writes the clamshell gate immediately before Closed-lid suppression enters the fast retry pathThe new lock stack has no password authentication module after Impact: For an awake, locked laptop with its lid closed, reader access stops but fingerprint PAM sessions keep restarting without backoff. Password authentication remains a separate context, rather than a fallback reached by this stack. Actual process rates, power effects and crashes were not measured. Suggested change: Pause fingerprint attempts while the lid is closed and re-arm when it opens, or distinguish this suppression path from retryable scan failures with bounded retries. Do not turn the gate into successful authentication. Adjust the shared “drops straight to the password prompt” comment to distinguish the lock's separate password context. Lock reconfiguration can remove the gate again
A private-copy shell check with synthetic enrollment produced: Impact: Running that configuration path after fingerprint setup restores unguarded reader access while the lid is closed. Suggested change: Keep both writers consistent with the chosen lid-aware policy, preferably through shared generation, and cover setup followed by lock reconfiguration. Review informationTest scope: Source inspection and a synthetic, retargeted shell-writer comparison. PAM/retry conclusions above are source-derived. No real reader, lid, lock UI or end-to-end install/upgrade validation. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection, independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, then Astra Medium synthesis against source and targeted evidence. |
|
folding into #12110 — lock PAM already gets the clamshell gate (laptop-open polarity) there. |
Summary
setup_lock_fingerprint_pamnow writes the shared$fprintd_gate(omarchy-hw-laptop-closed) beforepam_fprintd.soin/etc/pam.d/omarchy-lock-fingerprint, matching sudo/polkit.sed -i) against a scratch PAM tree and asserts the gate comes beforepam_fprintd.Closes #10096
Closes #10173
Test plan
bash test/shell.d/fingerprint-lock-pam-test.shbash test/shell.d/fingerprint-package-test.shbash test/shell.d/privileged-heredoc-test.shomarchy-setup-security-fingerprint, confirm/etc/pam.d/omarchy-lock-fingerprinthas the gate line abovepam_fprintd.so, then re-run setup and confirm the gate is still presentMade with Cursor