Skip to content

docs: clarify SELinux domain runtime guidance - #63

Closed
SeanDougherty wants to merge 9 commits into
aclmainfrom
sdougherty/selinux-domain-doc-review-followup
Closed

docs: clarify SELinux domain runtime guidance#63
SeanDougherty wants to merge 9 commits into
aclmainfrom
sdougherty/selinux-domain-doc-review-followup

Conversation

@SeanDougherty

@SeanDougherty SeanDougherty commented Aug 28, 2026

Copy link
Copy Markdown

Summary

Follow up on Jiri’s latest review of #60 without blocking the core policy and domain-reference PRs.

This PR targets aclmain directly and will remain independent of the #59/#60 review chain. It is temporarily opened as a draft from the cumulative tree; after #59 and #60 merge, its branch will be rebased onto the updated aclmain so the final diff contains only the review follow-ups below.

Changes

  • Anchor the documented domain inventory and container_init_t statement to selinux-policy-2.20250213-10.
  • Add the ACL systemd-journal GID 190 via supplementalGroups and document DAC-vs-SELinux diagnosis for journal reads.
  • Make multi-container MCS guidance concrete and collision-safe, with a single-container default.
  • Correct the combined privileged-domain KVM capability cell.
  • Avoid asserting SELinux defaults for other node OS images; direct readers to the effective CRI setting.

Validation

  • Cross-checked against compiled release-10 policy.
  • Verified ACL fixes systemd-journal at GID 190.
  • Verified containerd 2.2.4 type-only label allocation behavior.
  • Independent review found no remaining issues.

Azure Boards: AB#23415

SeanDougherty and others added 9 commits August 27, 2026 12:05
Remove access to auditd_log_t from container_logreader_t because audit logs contain host-wide security events outside the general log collector use case. Document specialized container domains, selection examples, MCS behavior, and audit-log exclusion.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Document the actual watch and audit boundaries on ACL, replace validation commands with stock journald equivalents, and grant read-only mmap access required by journalctl for persistent systemd journals.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Retain the audit-log read semantics established by container-selinux so compatible collectors do not need spc_t, collapse the package to one release bump, and make sensitive audit mounts explicit. Keep the read-only journal mmap addition.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Expand the SELinux guide into a customer-facing reference for every workload-selectable container domain, including privilege and MCS boundaries, selection examples, internal types to avoid, and guidance for requesting narrower policy instead of using spc_t.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Correct the KVM and common-container access descriptions, document stock privileged-domain behavior, warn about type-only MCS allocation in multi-container pods, and identify Podman and unavailable container_init_t contexts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Keep text labels for accessibility while adding colored glyphs for faster table scanning, and align the audit capability row with canonical container-selinux semantics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Clarify that Kubernetes SELinux type selection requires CRI SELinux support, note that ACL enables it in its embedded containerd configuration, and provide an effective-setting verification command.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Define system and user engine policy scope, remove the unsupported Podman launch example, clarify when auditd mounts apply, and simplify the capability table legend.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
Clarify spc and KVM capability comparisons, document journal DAC requirements, make multi-container MCS guidance collision-safe, soften cross-OS runtime defaults, and anchor policy claims to the shipped release.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Sean Dougherty <sdougherty@microsoft.com>
@SeanDougherty

Copy link
Copy Markdown
Author

Superseded by #60. All reviewed changes from this draft, plus the later follow-up documentation, are now incorporated directly into conflict-free commit 85a47002ca on #60.

SeanDougherty added a commit that referenced this pull request Aug 28, 2026
Add a customer-facing reference for ACL container workload domains, privilege boundaries, CRI and MCS requirements, journal DAC, audit behavior, and troubleshooting guidance. Includes the reviewed follow-ups previously tracked in #63.\n\nAB#23415
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