Skip to content

feat(agent): run the service at MCS level s0:c1023 on SELinux systems - #208

Merged
eniac111 merged 1 commit into
masterfrom
feat/agent-selinux-category
Nov 5, 2026
Merged

eniac111 merged 1 commit into
masterfrom
feat/agent-selinux-category

Conversation

@eniac111

@eniac111 eniac111 commented Nov 5, 2026

Copy link
Copy Markdown
Member

The packaged unit sets SELinuxContext= with a leading "-", so the agent keeps its unconfined service domain but gets a category of its own. The label changes nothing by itself: on the targeted policy MCS binds only container domains for file access. It lets an SELinux policy single the agent process out, for example with a constraint that refuses signals from senders at a lower level, without a module per node. Where the policy lacks the type systemd ignores the failure, and the directive is skipped where SELinux is disabled.

Document the category in the hardening guide and on the SELinux policy type page.

The packaged unit sets SELinuxContext= with a leading "-", so the agent
keeps its unconfined service domain but gets a category of its own. The
label changes nothing by itself: on the targeted policy MCS binds only
container domains for file access. It lets an SELinux policy single the
agent process out, for example with a constraint that refuses signals
from senders at a lower level, without a module per node. Where the
policy lacks the type systemd ignores the failure, and the directive is
skipped where SELinux is disabled.

Document the category in the hardening guide and on the SELinux policy
type page.
@eniac111
eniac111 merged commit 03e9df1 into master Nov 5, 2026
33 checks passed
@eniac111
eniac111 deleted the feat/agent-selinux-category branch November 5, 2026 05:28
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant