Sign in to sudo and polkit with a security key or fingerprint
Ports configure security-key and configure fingerprint from CoreDesktop's 9dc5eb1: touch a FIDO2 key or a finger instead of typing your password for sudo and polkit, falling back to the password. Each shows only when the hardware is there. The fingerprint skips to the password with the lid shut. lib/pam.sh is CoreDesktop's, but also takes Ubuntu's "@include common-auth" as the start of a stack's auth part, which is how sudo's and polkit's begin. Only those two stacks change, not common-auth, which pam-auth-update owns and every sign-in includes. libpam-fprintd's pam-auth-update profile is off by default, so installing it changes no sign-in by itself. The login and lock screens keep asking for the password, unlike on GNOME. Smoketest: 70-sign-in, on copies of Ubuntu's sudo and polkit stacks. TEST.md: with a real key and reader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,7 @@ Each run writes its logs to `smoketest/results/<time>/`, one per scenario, and p
|
||||
| `50-sandbox` *(all)* | Node.js and srt download and install. A stand-in agent can't read `~/.ssh` or Federated Connector's settings, or write outside its project, reaches allowed sites only, and won't start in your home folder. A new bash finds the sandboxed command first. |
|
||||
| `55-hermes-homeserver` | Hermes' gateway reaches only a Matrix server you've allowed: a server in Hermes' settings is to do until `configure hermes` allows it, a wildcard or escape codes never count, and `configure agents` carries over the server an old drop-in allowed. `edit_json` fills an empty file from its default. |
|
||||
| `60-packages` *(all)* | davfs2 installs with `mount.davfs` setuid, and `davfs2_ready` fixes one installed without. sshfs' `fusermount3` and smbclient are where `configure storage` expects them, and so is GTK's CUPS print backend. mise installs from its apt repository and a new bash has it. |
|
||||
| `70-sign-in` | `configure security-key` and `configure fingerprint` on copies of Ubuntu's sudo and polkit stacks, which start with `@include common-auth`: the line goes just before it, polkit gets its own copy and the vendor's is left alone, adding twice adds once, and stopping puts sudo back as it was. A FIDO2 key is found by its HID descriptor, a reader by its vendor (unless a driver claims it, like a touchpad) or its name. |
|
||||
|
||||
## What still needs Pop!_OS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user