Repository navigation
soc: apple: sep: let Touch ID wait for the first password after boot - #1194
Conversation
macOS does not accept Touch ID after a restart until the password has been entered once. Linux restores matching at boot, so Touch ID works from the first login, and some people prefer that. Make the macOS way available without making it the default. SEP_BIO_REQUIRE_PASSWORD, on /dev/sep-bio-rearm and for CAP_SYS_ADMIN only, makes every verify fail at once with SEP_BIO_STATUS_LOCKOUT, without a capture, until the next SEP_BIO_REARM. That re-arm is the password authentication userspace already reports, so nothing new is needed after the password. A boot service calls the ioctl before any login when the administrator asks for it. The state lives in memory only: a restart forgets it, and userspace decides again at the next boot. SEP_BIO_LOCKOUT_STATE reports the wait as locked, with the new SEP_BIO_LOCKOUT_FLAG_AFTER_BOOT, so userspace can tell it from a lockout after failed matches. The enclave is not involved: the wait is the host's, as Linux's boot restore is. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
…touchid-after-boot
|
Neo no-finger gate PASS for both settings on 7.3.0-aurora-fleet31-tid28 (edbeae8 = integration 11943fb + this PR), 16:34-16:37.
Evidence: traces/touchid/20261108-touchid28-gate. Ryan's 1-minute finger check is pending (TEST-touchid28). |
|
Ready for the merge train. Evidence: Ryan's finger check passed on the Neo with 7.3.0-aurora-fleet31-tid28 (fleet31 base 11943fb + this head edbeae8, require_password_after_boot = yes): the lock screen refused the finger and asked for the password, then sudo matched the finger with no password. The no-finger gate passed in both modes (TIDSET, 16:37). None of the four files has changed on integration since 11943fb, and the head merges clean onto 6efd5fd. KUnit arm64 (sep.kunitconfig) on that merge: 409 run, 407 passed, 2 skipped. The message wording follow-up is linux#1209 (TIDMSG). |
Brings #1194, which makes Touch ID wait for the first password after boot (kernel side). Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
Stacked on #1143 (on #1134, on #1087). Once those merge, I retarget this to integration/aurora.
macOS does not accept Touch ID after a restart until the password has been entered once. Linux restores matching at boot, so Touch ID works from the first login. Ryan wants that as a choice: the default stays as it is, and the macOS way becomes a setting.
Kernel (generic apple_sep, no SoC paths)
SEP_BIO_REQUIRE_PASSWORD(_IO(0xB1, 0x10), on/dev/sep-bio-rearm,CAP_SYS_ADMIN): every verify fails at once withSEP_BIO_STATUS_LOCKOUT, with no capture, until the nextSEP_BIO_REARM. That re-arm is the password authentication userspace already reports.SEP_BIO_LOCKOUT_STATEreports the wait aslocked=1with the newSEP_BIO_LOCKOUT_FLAG_AFTER_BOOT(2), so it is distinguishable from a lockout after failed matches.Userspace
aurora-touchid-rearm --boot/--status./etc/aurora/touchid.conftakesrequire_password_after_boot = no|yes. Any value other than yes or no counts as yes.aurora-touchid-boot.serviceruns afteraurora-sep-ready, before fprintd and the display manager.aurora.sep.requirePasswordAfterBoot).Gates
after_boot_wait_reports_lockedpasses.🤖 Generated with Claude Code