Repository navigation
fix(selinux): stop two harmless security warnings on every boot - #1201
Closed
kylerankin wants to merge 1 commit into
Closed
kylerankin wants to merge 1 commit into
kylerankin wants to merge 1 commit into
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Needs approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
|
/ok-to-test |
Contributor
|
Cannot /ok-to-test because Error: hivecommons-hive[bot] is not a reviewer or approver for any changed file |
ublue-booted-image.service recorded the booted image ref by running `bootc status --json` from the ublue-booted-image-sync script. bootc then ran in the script's unconfined service domain instead of its own SELinux domain, so its relabelling chcon probe was denied mac_admin, logging two AVC denials in every boot. Run bootc as the unit's bare ExecStart so it enters bootc's install_exec_t domain, truncate its JSON to a file, and parse that file in ExecStartPost with the existing sync script. /run/ublue-os/booted-image still holds the same reference for fastfetch. Hive-Run: projectbluefin#1198 Hive-Plan: selinux-booted-image-avc-denials Hive-Spec: projectbluefin#1198 Signed-off-by: kylerankin <kylerankin@users.noreply.github.com>
kylerankin
force-pushed
the
fix/selinux-booted-image-avc-denials
branch
from
November 13, 2026 03:41
3ef89bb to
ea05d5e
Compare
Contributor
|
/ok-to-test |
Contributor
|
Cannot /ok-to-test because Error: hivecommons-hive[bot] is not a reviewer or approver for any changed file |
Contributor
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.
Summary: Every time Utah starts, a small service that records which version of Utah is running makes the tool that updates Utah run in the wrong security context. That writes two harmless "denied" warnings to the security log on every boot. Nothing breaks, but those warnings are alarming to see, and now that Utah's automated tests read that log, they would fail every test run. This change runs the update tool the way Utah already runs it elsewhere — as the service's own startup command instead of from inside a helper script — so it gets the correct security context and the warnings stop, while still recording the same image for fastfetch to show.
What I need from you: Approve it.
What changed
ExecStart), so the tool runs in its own SELinux domain instead of inside the helper script's broad, unrestricted domain.Why
ghcr.io/projectbluefin/utah:testingfailed its SELinux gate on exactly these two records — twochconcalls deniedmac_admin, 134 ms apart, about 12.7 s into boot, fromublue-booted-image.service.Acceptance
chcon"denied" entries in the boot log or audit log of a booted:testingbuild./run/ublue-os/booted-imagestill holds the same referencebootc statusreports, so fastfetch shows the right image.Tests
tests/test_booted_image_unit.py) that pins the service's shape: the update tool runs directly asExecStart, its output is truncated to a file, a startup step makes the folder first, the helper script reads that file, and the helper script no longer runs the tool itself. All 5 cases pass.Note for a maintainer
manual.ymlwithsuites=commonon this PR's built image (testsuite fix(tuned): keep TuneD off the bootc sysroot lock #1171 ormain) and link the run so the AVC gate is confirmed green.— hive: backend=pi model=lemonade/ornith-1.5-35b-a3b-gguf-q6_k