Skip to content

tools: aurora-sep: share the SELinux device type and let fprintd read the lid (rebased) - #584

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
aurora-sep/selinux-shared-type-v2
Oct 30, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
aurora-sep/selinux-shared-type-v2

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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:

A second commit fixes the Arch sums of load-driver and XART-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 0x1c came 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-bio shows aurora_sep_device_t, and clamshell hides the reader.

🤖 Generated with Claude Code

RyanTheTide and others added 2 commits October 29, 2026 04:00
… 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]>
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