Skip to content

Gate fingerprint PAM on lid-open without noisy pam_exec errors - #12075

Closed
chessing234 wants to merge 4 commits into
omacom:quattrofrom
chessing234:fix/fingerprint-clamshell-pam
Closed

chessing234 wants to merge 4 commits into
omacom:quattrofrom
chessing234:fix/fingerprint-clamshell-pam

Conversation

@chessing234

@chessing234 chessing234 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Gate lock/sudo/polkit fingerprint PAM behind the laptop lid.
  • Use the silent lid-open polarity so pam_exec does not LOG_ERR on every auth when the lid is open.

Combines #11599 and #11763 into one reviewable PR; those will be closed.

Test plan

  • bash test/shell.d/lock-fingerprint-clamshell-gate-test.sh
  • bash test/shell.d/fingerprint-clamshell-silent-gate-test.sh

Match the omacom#10254 fix so adding the clamshell gate to lock PAM does not
reintroduce pam_exec LOG_ERR spam on the common lid-open path.
pam_exec logged LOG_ERR whenever omarchy-hw-laptop-closed exited 1, which
is the common lid-open case on every sudo/polkit auth. Gate with
omarchy-hw-laptop-open and success=ignore so control flow stays the same
without flooding the journal (omacom#10254).
Lock is its own PamContext; skipping pam_fprintd there unlocks with the lid shut.
@chessing234

Copy link
Copy Markdown
Contributor Author

folding into #12110 with the keep-fork setup fix

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.

1 participant