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:
@@ -89,6 +89,16 @@ Once it's packaged for Pop!_OS (see [PLAN.md](PLAN.md)):
|
||||
- [ ] A network printer found by `configure printers` prints a test page from
|
||||
a GTK app's print dialog
|
||||
|
||||
### Security key and fingerprint
|
||||
|
||||
- [ ] With a FIDO2 key plugged in, `configure security-key` registers it;
|
||||
`sudo true` in a new terminal asks for a touch, and without the key, the
|
||||
password. A COSMIC Settings password prompt does the same.
|
||||
- [ ] On a laptop with a reader, `configure fingerprint` enrolls a finger and
|
||||
`sudo true` takes it; with the lid shut (on an external display), it asks
|
||||
for the password straight away
|
||||
- [ ] Running each again and stopping puts `/etc/pam.d/sudo` back as it was
|
||||
|
||||
### AI agents and the sandbox
|
||||
|
||||
- [ ] Each agent installs and signs in, and runs in the sandbox
|
||||
|
||||
Reference in New Issue
Block a user