Review of "Finger Pass" version 0.1 (1)

Details Page Preview

Answer administrator prompts with your fingerprint or your password, whichever comes first. GNOME makes you wait for the fingerprint reader before it offers the password. Finger Pass replaces the authentication dialog with one that shows the reader and the password field together: touch the reader or start typing. The reader's state is drawn in the dialog, with the attempts left. The preferences window turns the fingerprint on for administrator dialogs and for sudo in one click (it edits /etc/pam.d/sudo and /etc/pam.d/polkit-1 after asking for your password, keeps the originals, and can undo it), checks your reader, and repairs the setup when a package update takes it away. Login and the lock screen are left alone.

Extension Homepage
https://github.com/d101c/finger-pass

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental)

Shexli did not find any issues.

All Versions

Version Status
0.1 (1) Unreviewed

Previous Reviews on this Version

jg__ posted a review
Thanks for reviewing Finger Pass. Two things deserve an explanation. 1. It replaces the shell's polkit authentication agent. GNOME's own dialog offers the password only after the fingerprint reader has timed out (gnome-shell#5445, open since 2022). Finger Pass shows the reader and the password field together by running two authentication sessions for the same request: the first holds the reader, the second finds it busy and goes straight to the password, and whichever succeeds first answers the request. dialog.js is based on gnome-shell's js/ui/components/polkitAgent.js (GPL-2.0-or-later). enable() unregisters the stock agent and registers a Shell.PolkitAuthenticationAgent subclass; disable() unregisters it and re-enables the stock one, and a request still open at that point is dismissed. The stock agent is reached through Main.componentManager._allComponents.polkitAgent, the only way to get that instance; it is created while the session starts, so the extension retries for a few seconds instead of creating a second one. No unlock-dialog session mode is used. All timers and signals are removed in disable(). 2. The preferences window has a Turn On / Repair / Turn Off button that runs a command as root. Only on an explicit click, and only through pkexec, it adds or removes lines ending in "# finger-pass" in /etc/pam.d/sudo, /etc/pam.d/sudo-i and /etc/pam.d/polkit-1 (a copy of the vendor file in /usr/lib/pam.d). No file is executed as root: the scripts are constants in pam.js, passed as an argument to /bin/sh -c, so there is no script on disk that a user process could modify, and polkit shows the command before the user authenticates. They check everything before writing, write through temporary files, refuse layouts they do not recognise, leave files set up by something else alone, keep the originals in /var/backups/finger-pass, and Turn Off restores them exactly. It is POSIX sh rather than GJS because a GJS script would have to be a file the user can replace, which the guidelines rule out for pkexec. I know the guidelines say privileged subprocesses should be avoided at all costs. If you would rather not have this in the extension, I can replace the button with the exact commands and a copy button, and keep everything else. Tested in virtual machines on Ubuntu 26.10 (GNOME Shell 51.0, sudo-rs) and Fedora 45 (51.1, SELinux enforcing, authselect) with a virtual reader, and on one real Synaptics reader. Source, tests and a user guide: https://github.com/d101c/finger-pass