Skip to content

soc: apple: sep: let Touch ID wait for the first password after boot - #1194

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
feat/sep-touchid-password-after-boot
Nov 8, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
feat/sep-touchid-password-after-boot

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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 with SEP_BIO_STATUS_LOCKOUT, with no capture, until the next SEP_BIO_REARM. That re-arm is the password authentication userspace already reports.
  • The wait is in memory only. A restart forgets it, and userspace decides again at the next boot.
  • SEP_BIO_LOCKOUT_STATE reports the wait as locked=1 with the new SEP_BIO_LOCKOUT_FLAG_AFTER_BOOT (2), so it is distinguishable from a lockout after failed matches.
  • The enclave is not involved. The wait is the host's, like Linux's boot restore.

Userspace

  • aurora-sep-userspace#6: aurora-touchid-rearm --boot / --status.
  • /etc/aurora/touchid.conf takes require_password_after_boot = no|yes. Any value other than yes or no counts as yes.
  • aurora-touchid-boot.service runs after aurora-sep-ready, before fprintd and the display manager.
  • Packaging: fedora-aurora#154, alarm-aurora#119, nixos-aurora#124 (NixOS option aurora.sep.requirePasswordAfterBoot).

Gates

  • checkpatch --strict: 0/0/0.
  • W=1 drivers/soc/apple: 0 warnings.
  • KUnit apple_sep*: 175/179. The 4 failures are the base's known host_store ones; the new after_boot_wait_reports_locked passes.
  • Neo: no-finger gate on the test kernel 7.3.0-aurora-fleet22-tid28 is pending, then Ryan's 1-minute finger check.

🤖 Generated with Claude Code

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
@RyanTheTide
RyanTheTide changed the base branch from fix/sep-touchid-password-clears-count to integration/aurora November 8, 2026 04:37
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Neo no-finger gate PASS for both settings on 7.3.0-aurora-fleet31-tid28 (edbeae8 = integration 11943fb + this PR), 16:34-16:37.

  • no (default): Touch ID is offered from boot. State is flags 1, and a verify arms a capture.
  • yes: the boot service and the kernel report the wait, and the state is locked=1 flags=3.
    • A verify is refused in 146 ms with verify-lockout and no capture; nothing is counted.
    • A root re-arm (the path a password takes) logs "armed by the first password since this boot", with no enclave work.
    • A verify then arms a capture again.
  • 0 apple_sep err, 0 AVC and unchanged catacombs on both boots. An earlier run on the tid27 base also passed.

Evidence: traces/touchid/20261108-touchid28-gate. Ryan's 1-minute finger check is pending (TEST-touchid28).

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 8, 2026 11:36
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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).

@RyanTheTide
RyanTheTide merged commit f611d92 into integration/aurora Nov 8, 2026
4 checks passed
@RyanTheTide
RyanTheTide deleted the feat/sep-touchid-password-after-boot branch November 8, 2026 11:36
@RyanTheTide
RyanTheTide restored the feat/sep-touchid-password-after-boot branch November 8, 2026 11:37
@RyanTheTide
RyanTheTide deleted the feat/sep-touchid-password-after-boot branch November 8, 2026 11:37
RyanTheTide added a commit that referenced this pull request Nov 8, 2026
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
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.

1 participant