%global commit ea46d8a0aef3e73b0e2f747aa18721dbcd265bce %{!?kernel_release:%global kernel_release 7.3.6-310.t2.6.1.fc45.x86_64} %global recovery_libexec %{_libexecdir}/t2-touchid-recovery %global module_dir %{_prefix}/lib/modules/%{kernel_release}/extra/t2-touchid-setup %global debug_package %{nil} Name: t2-touchid-setup Version: 0.1 Release: 10%{?dist} Summary: Unlock Touch ID after a lockout on Apple T2 Macs License: GPL-2.0-only URL: https://github.com/jmurth1234/t2-touchid-linux Source0: %{url}/archive/%{commit}/t2-touchid-linux-%{commit}.tar.gz Source1: t2-touchid-keybag Source2: t2-touchid-recovery-enable Source3: unlock Source4: keybag-uuid Source5: notify-lockout Source6: t2-touchid-recovery-notify.service Source7: org.t2linux.touchid-recovery.policy Source8: README.md Source9: service-guard Source10: t2-touchid-setup Source11: t2-touchid-unlock.service Patch0: active-trial.patch ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: make BuildRequires: elfutils-libelf-devel BuildRequires: kernel-devel-uname-r = %{kernel_release} BuildRequires: systemd-rpm-macros Requires: kernel-uname-r = %{kernel_release} Requires: coreutils Requires: diffutils Requires: fprintd Requires: kmod Requires: openssl Requires: polkit Requires: systemd Requires: util-linux-core Requires: kdialog Requires: libnotify Requires: python3 Provides: t2-touchid-recovery = %{version}-%{release} Obsoletes: t2-touchid-recovery < %{version}-%{release} %description Import an encrypted macOS keybag and unlock Touch ID after a confirmed lockout. The interactive t2-touchid-setup command guides USB transfer and activation. Enable Unlock Touch ID once to start it at boot. Use with the t2-touchid package from the same repository. %prep %autosetup -n t2-touchid-linux-%{commit} -p1 cp -p %{SOURCE8} README.fedora.md %build %make_build -C src module KDIR=%{_prefix}/src/kernels/%{kernel_release} %{__cc} %{build_cflags} -Wall -Wextra -Werror %{build_ldflags} -o src/t2-aks-tool src/t2-aks-tool.c %install install -Dm0755 %{SOURCE10} %{buildroot}%{_bindir}/t2-touchid-setup install -Dm0755 %{SOURCE1} %{buildroot}%{_bindir}/t2-touchid-keybag install -Dm0755 %{SOURCE2} %{buildroot}%{_bindir}/t2-touchid-recovery-enable install -Dm0755 %{SOURCE3} %{buildroot}%{recovery_libexec}/unlock install -Dm0755 %{SOURCE4} %{buildroot}%{recovery_libexec}/keybag-uuid install -Dm0755 %{SOURCE5} %{buildroot}%{recovery_libexec}/notify-lockout install -Dm0644 %{SOURCE6} %{buildroot}%{_prefix}/lib/systemd/user/t2-touchid-recovery-notify.service install -Dm0644 %{SOURCE11} %{buildroot}%{_unitdir}/t2-touchid-unlock.service install -Dm0644 %{SOURCE7} %{buildroot}%{_datadir}/polkit-1/actions/org.t2linux.touchid-recovery.policy install -Dm0644 %{SOURCE9} %{buildroot}%{recovery_libexec}/service-guard install -Dm0755 src/t2-aks-tool %{buildroot}%{recovery_libexec}/t2-aks-tool install -Dm0644 src/t2_aks_state.py %{buildroot}%{recovery_libexec}/t2_aks_state.py install -Dm0644 src/t2_sep_transport_trial.ko %{buildroot}%{module_dir}/t2_sep_transport_trial.ko install -dm0700 %{buildroot}%{_localstatedir}/lib/t2-touchid-recovery %preun %systemd_preun t2-touchid-unlock.service %systemd_user_preun t2-touchid-recovery-notify.service %postun %systemd_postun t2-touchid-unlock.service %systemd_user_postun t2-touchid-recovery-notify.service %files %license LICENSE %doc README.fedora.md %{_bindir}/t2-touchid-setup %{_bindir}/t2-touchid-keybag %{_bindir}/t2-touchid-recovery-enable %{recovery_libexec}/ %{_prefix}/lib/systemd/user/t2-touchid-recovery-notify.service %{_unitdir}/t2-touchid-unlock.service %{_datadir}/polkit-1/actions/org.t2linux.touchid-recovery.policy %{module_dir}/ %attr(0700,root,root) %dir %{_localstatedir}/lib/t2-touchid-recovery %changelog * Thu Dec 03 2026 T2 Fedora contributors - 0.1-10 - Authenticate both verified keybag handles and confirm the sensor's lockout cleared. - Keep fingerprint service activation from interrupting recovery. * Thu Dec 03 2026 T2 Fedora contributors - 0.1-9 - Open the password dialog with Plasma's current display settings. - Close the lockout notification with the correct D-Bus interface. * Thu Dec 03 2026 T2 Fedora contributors - 0.1-8 - Install the driver under the kernel module tree so SELinux permits loading it at boot. * Thu Dec 03 2026 T2 Fedora contributors - 0.1-7 - Start Unlock Touch ID at boot after a one-time opt-in. * Thu Dec 03 2026 T2 Fedora contributors - 0.1-6 - Show separate choices for reusing a saved keybag and importing a separate file. - Reuse a validated import without asking for the macOS account IDs again. * Wed Dec 02 2026 T2 Fedora contributors - 0.1-5 - Clarify first-time setup and how to reuse a saved keybag. - Use Unlock Touch ID in the setup guide, prompts, and notifications. - Enable Unlock Touch ID without extra kernel options. * Wed Dec 02 2026 T2 Fedora contributors - 0.1-4 - Verify the live keybag account and PCI command before sending recovery requests. * Wed Dec 02 2026 T2 Fedora contributors - 0.1-3 - Guide USB transfer, keybag import, and trial activation from the terminal. * Wed Dec 02 2026 T2 Fedora contributors - 0.1-2 - Verify the exported macOS account and use both keybag handles on retry. * Wed Dec 02 2026 T2 Fedora contributors - 0.1-1 - Package the Touch ID recovery trial and encrypted keybag import.