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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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
Assisted-by: LLM (Claude:Opus 5.5)