Repository navigation
tools: aurora-sep: share the SELinux device type and let fprintd read the lid (rebased) - #584
Merged
RyanTheTide merged 2 commits intoOct 30, 2026
Conversation
… the lid The fedora-aurora package builds a policy module of the same name, aurora_sep, but labels /dev/sep-bio aurora_sep_device_t where this tree says sep_bio_device_t. Only one module of a name is active per priority, so a Mac that moved from this tree's aurora-sep-selinux to the package logged "Context sep_bio_device_t became invalid" and was left with an unlabelled /dev/sep-bio, which fprintd may not open. Use the package's name. It follows the reference policy habit of prefixing a module's types with the module name. The package's module also has two rules this one lacks. libfprint's aurora build hides the reader while the lid is closed by following SW_LID on the input event devices. Under the targeted policy fprintd may not read those, logs "Cannot open /dev/input/eventN: Permission denied" and keeps offering Touch ID in clamshell. dev_read_input(fprintd_t) allows the read; the fprintd unit drop-in that libfprint ships already allows char-input for the device cgroup. The package also lets init_t open, read and query the device, for the readiness helpers its units run. Take both, so the two modules are the same policy. The README says what the input rule is for and that a module loaded by hand with semodule -i sits at priority 400 and shadows a packaged one. Bump the Fedora spec to 1-10 for the policy change, and the Arch pkgrel to 15 for the README checksum, since 1-9 and 14 went to the boot policy change. Built with the Fedora 44 selinux-policy-devel Makefile. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 7cc30f3)
…ETY.md The boot policy change rewrote load-driver and XART-SAFETY.md but left their old sums in the Arch PKGBUILD, so makepkg refuses the sources and tests/test_packaging.py fails on integration/aurora. Use the sums of the files in the tree. Every source sum now matches its file. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
This is #567 on top of the current
integration/aurora. That PR conflicts there, because #545 (the boot policy change) took the same Fedora release, 1-9, and the same Arch pkgrel, 14.The commit is #567's own, cherry-picked, with only the versions moved on:
selinuxdescription line. The 1-9 entry from soc: apple: sep: keep Touch ID across a boot policy change #545 is kept.aurora_sep.te,aurora_sep.fc) and the README are tools: aurora-sep: share the SELinux device type and let fprintd read the lid #567's, unchanged.A second commit fixes the Arch sums of
load-driverandXART-SAFETY.md. #545 changed both files but kept their old sums, so makepkg refuses the sources on integration/aurora today. Every source sum now matches its file.No change of content otherwise, so #567's testing stands: the module compiles with the Fedora 44 devel Makefile, and the M1 Pro and M2 already run this policy text. It supersedes #567 and can merge in its place.
Why #567 was on hold
The hold comment on #567 is about the Neo regression in the distribution packages, not this policy.
LOAD_CALIBRATION 0x1ccame from the packages'prepare-sep-calibration, which this tree does not ship. That helper wrote the bare FSC2 image over the Neo's sealed calibration. The fix goes into the three packaging PRs:Versions
The fedora-aurora package goes to 1-11 in aurora-silicon/fedora-aurora#47. That keeps it above this kit spec (1-10) and above the 1-9 CI build the ref Macs run now.
Not tested here
No hardware runs were done for this PR, because the content is #567's. The policy needs one boot on a Fedora Mac, with the label check from #567:
ls -Z /dev/sep-bioshowsaurora_sep_device_t, and clamshell hides the reader.🤖 Generated with Claude Code