Skip to content

fix(security): prevent broken dependencies for foreign libfprint prov… - #17810

Closed
FourGL wants to merge 3 commits into
omacom:quattrofrom
FourGL:fix-fingerprint-deps
Closed

FourGL wants to merge 3 commits into
omacom:quattrofrom
FourGL:fix-fingerprint-deps

Conversation

@FourGL

@FourGL FourGL commented Nov 5, 2026 •

Copy link
Copy Markdown

fix(security): support foreign libfprint providers

Refactor the package installation logic to respect virtual capabilities and preserve foreign drivers like libfprint-tod.

What changes

The omarchy-setup-security-fingerprint script previously hardcoded the installation of libfprint-git. This caused critical transaction failures for users with proprietary or vendor-specific fingerprint sensors (such as Goodix or Synaptics chips commonly found in Dell and Lenovo laptops).

These sensors require custom drivers from the AUR that depend on libfprint-tod (Touch OEM Driver). Forcing libfprint-git via pacman breaks the dependency tree by trying to strip out libfprint-tod, which downstream hardware wrappers require. The --ask 4 flag fails to mitigate this path since it only resolves standard libfprint vs libfprint-git updates.

This PR transitions the installation step to evaluate libfprint as an abstract virtual capability rather than a strict package name:

  1. It uses pacman -Qqm libfprint to dynamically check if a foreign (AUR/custom) driver provider is already handling the fingerprint layer.
  2. If a foreign provider is found, it safely skips libfprint-git and only provisions the framework orchestration tools (fprintd and usbutils), leaving the underlying hardware driver untouched.
  3. On a clean installation where no provider exists, it cleanly falls back to the original behavior, deploying libfprint-git and resolving stock conflicts via --ask 4.

Verification

  • Tested on standard hardware: Verified execution on a vanilla machine structure. When libfprint-git is missing, the script correctly triggers the installation flow. If stock libfprint is present, it accurately falls back to the --ask 4 replacement path, satisfying mainline readers (like Touch ID).
  • Tested on custom hardware (Goodix 533c): Verified execution on a machine with a pre-configured libfprint-tod + libfprint-goodix-53xc stack. The pacman -Qqm validator screens the environment, safely isolates the transaction parameters strictly to framework binaries (fprintd usbutils), and keeps vendor-specific downstream drivers intact.
  • CI Test Harness: Refactored test/shell.d/fingerprint-package-test.sh to implement comprehensive mock assertions for -Qqm queries. Added a distinct MOCK_FOREIGN_LIBFPRINT pipeline ensuring complete coverage for foreign package preservation behaviors. All shell test assertions pass locally.

Screenshots

No visible change: Refactors package constraint validation during the fingerprint setup phase; the command-line setup flow and end-user interactive prompt structure remain exactly the same.

…iders

Refactor the package installation logic to respect virtual capabilities and preserve foreign drivers like libfprint-tod.
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

The PR adds a package-selection branch intended to preserve foreign fingerprint drivers while keeping the stock-to-libfprint-git replacement path.

  • Fingerprint setup keeps foreign reader drivers and installs its support tools.

Reviews (3) · Last reviewed commit: "updated tests" · Reviewed by Greptile

Comment thread bin/omarchy-setup-security-fingerprint Resolved
Comment thread bin/omarchy-setup-security-fingerprint Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

I read the package-selection change, its regression tests, and the PR discussion at 627d3a7e215f5cc6c3f17be74250441b8dd8289d. This was a driver-only inspection by GPT-6 High in Codex.

I classified this as a compatibility fix because it aims to preserve the fingerprint driver required by particular sensors. The second classifier, deepseek-v4p1-flash, returned no usable classification, so classification remains unsettled. No second code review or worker tests ran, and no code or labels changed. Verification is waiting for classification to be resolved.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @FourGL. #12833 merged today as 1bcb85e and fixes this: fingerprint setup now asks which package owns /usr/lib/libfprint-2.so.2 and leaves libfprint-git out when a fork owns it, whichever repository the fork came from. That covers the foreign-provider case this handles with pacman -Qqm libfprint, so nothing here is left to land. This was closed at the maintainer's request after a review of every open fingerprint pull request. Fable 5 in Claude Code read it against today's quattro; no second model checked the closure, so reopen it if this reads your change wrong.

@omarchybot omarchybot closed this Nov 21, 2026
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.

2 participants