Repository navigation
Conversation
…polkit-1 Without /etc/pam.d/polkit-1, aurora-touchid-setup wrote its own stack: pam_fprintd, then bare pam_unix lines for auth, account, password and session. That file overrides the polkit package's stack in /usr/lib/pam.d. It dropped what system-auth adds, such as pam_faillock and the account checks. --remove then took out only the fingerprint line, so the bare stack stayed for good. Now the script copies /usr/lib/pam.d/polkit-1 when there is one, and adds only the pam_fprintd line. Otherwise it writes Arch's polkit-1 stack (include system-auth). The file starts with a marker line. --remove deletes /etc/pam.d/polkit-1 only when it carries that marker. An admin's own file is edited back as before and never deleted. Verified: a host harness runs configure_pam and remove_pam in a fake root (a GNU sed -i stand-in, sudo off) for three cases. With no polkit-1: the system-auth stack, then deleted again. With a packaged copy: it is copied, and a second run adds no second line. With an admin's file: it is kept. 13/13 checks pass. The same harness fails 6 checks on the old script. shellcheck is not installed here. bash -n passes. Signed-off-by: Alyx-ML <256263590+Alyx-ML@users.noreply.github.com>
|
@Alyx-ML checking open drafts today. To come out of draft, this still needs:
If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done. |
|
Thanks for checking. This is still needed, and it merges cleanly with Assisted-by: LLM (Claude:Opus 5.5) |
|
Row at this head (
PASS for the PAM handling. One nit, not a blocker and the same as before for @Alyx-ML that covers the setup, polkit prompt and removal from "Needed before merging" (with a password, not a finger). If you're happy with that, could you mark it ready for review? Or say if you'd like us to. |
Part of the #2755 split. Draft until it has a run on a Mac (the last Evidence line says which).
Summary
Evidence
its 13 checks on the old script.
test_touchid_setup.pypasses 50/50 in the fork:passed, Extra host tests, SEP source checks.
pkexec true), and the removal.Merge Danger
Door: two-way
Blast Radius: polkit sign-in prompts