Skip to content

soc: apple: sep: say why Touch ID needs the password - #1209

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
feat/sep-touchid-lockout-reason
Nov 8, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
feat/sep-touchid-lockout-reason

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Stacked on #1194 (base is its branch; retarget to integration/aurora once #1194 merges).

After a restart with require_password_after_boot = yes, the lock screen said "Too many failed fingerprint attempts. Use your password.": every refused verify ends with SEP_BIO_STATUS_LOCKOUT, whatever the reason. macOS says "Your password is required to enable Touch ID" there, and keeps the lockout wording for real failed attempts.

This lets userspace tell the reasons apart:

  • SEP_BIO_LOCKOUT_STATE now also works on /dev/sep-bio (read-only). fprintd holds that node; /dev/sep-bio-rearm stays confined to the re-arm helper.
  • New SEP_BIO_LOCKOUT_FLAG_FAILED_ATTEMPTS (4): set while the lockout follows too many failed matches (5 since the last match or password, or the enclave's own lockout bits 0x0040/0x0004, which macOS misses can also set).
  • locked with AFTER_BOOT: the wait for the first password since boot. locked with neither flag: the password is needed for another reason (lapsed match credential, refused match context).
  • Older kernels answer the ioctl on /dev/sep-bio with -ENOTTY; libfprint keeps the lockout then.

Userspace: aurora-silicon/aurora-sep-userspace (libfprint aurora11 0009, fprintd aurora3 0003).

Gates (buildbox o/tidmsg): checkpatch --strict 0/0/0, W=1 drivers/soc/apple/ 0 warnings, KUnit apple_sep* 182/182 (new lockout_names_failed_attempts).

Hardware: not booted yet. Needs a test kernel on the Neo (fleet31 + #1194 + this) for the no-finger check that fprintd-verify reports verify-password-required-after-boot with the setting on.

🤖 Generated with Claude Code

Every refused verify ends with SEP_BIO_STATUS_LOCKOUT, whether Touch ID
waits for the first password since boot, follows five failed matches, or
needs the password because the enclave's match credential lapsed. Login
screens then all say there were too many failed attempts, which is wrong
for the wait after a restart that the administrator asked for; macOS
says "Your password is required to enable Touch ID" there.

Report SEP_BIO_LOCKOUT_STATE on /dev/sep-bio as well, read-only, so the
verifying daemon, which holds that node and not the re-arm one, can ask
why. Add SEP_BIO_LOCKOUT_FLAG_FAILED_ATTEMPTS: set while the lockout
follows too many failed matches, five since the last match or password
or the enclave's own lockout bits. A lockout with neither that flag nor
SEP_BIO_LOCKOUT_FLAG_AFTER_BOOT needs the password for another reason.
Older kernels answer the ioctl on /dev/sep-bio with -ENOTTY, so userspace
can tell them apart.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Neo no-finger gate PASS on 7.3.0-aurora-fleet31-tid29 (#1194 + this) with libfprint aurora11 / fprintd aurora3 (aurora-sep-userspace#16): wait after boot -> flags=3, verify-password-required-after-boot; lockout record with 5 misses -> flags=5 (FAILED_ATTEMPTS), verify-lockout; locked with 0 misses -> flags=1, verify-password-required; setting no -> unlocked, verify arms a capture. Each refusal in under 200 ms, no capture, catacombs unchanged, 0 apple_sep errors, 0 AVC. Older kernels: ENOTTY on /dev/sep-bio checked on the J616s (fleet32).

@RyanTheTide
RyanTheTide merged commit ad4734b into integration/aurora Nov 8, 2026
6 checks passed
@RyanTheTide
RyanTheTide deleted the feat/sep-touchid-lockout-reason branch November 8, 2026 12:22
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