Repository navigation
soc: apple: sep: say why Touch ID needs the password - #1209
Merged
Merged
Conversation
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
This was referenced Nov 8, 2026
RyanTheTide
changed the base branch from
feat/sep-touchid-password-after-boot
to
integration/aurora
November 8, 2026 11:37
RyanTheTide
marked this pull request as ready for review
November 8, 2026 12:15
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 -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1194 (base is its branch; retarget to
integration/auroraonce #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 withSEP_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_STATEnow also works on/dev/sep-bio(read-only). fprintd holds that node;/dev/sep-bio-rearmstays confined to the re-arm helper.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 bits0x0040/0x0004, which macOS misses can also set).lockedwithAFTER_BOOT: the wait for the first password since boot.lockedwith neither flag: the password is needed for another reason (lapsed match credential, refused match context)./dev/sep-biowith-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, KUnitapple_sep*182/182 (newlockout_names_failed_attempts).Hardware: not booted yet. Needs a test kernel on the Neo (fleet31 + #1194 + this) for the no-finger check that
fprintd-verifyreportsverify-password-required-after-bootwith the setting on.🤖 Generated with Claude Code