Skip to content

Preserve root-published RoE during unprivileged session bootstrap - #1200

Merged
PurpleCHOIms merged 2 commits into
mainfrom
fix/root-roe-bootstrap-20261116
Nov 15, 2026
Merged

PurpleCHOIms merged 2 commits into
mainfrom
fix/root-roe-bootstrap-20261116

Conversation

@PurpleCHOIms

Copy link
Copy Markdown
Member

A workload running as an unprivileged UID cannot replace a root-owned 0444 RoE in a root-owned sticky planning directory. Session bootstrap previously failed at os.replace even when the host had already published the exact approved bytes.

Retain only an identical root-owned, read-only, single-link regular file, checking no-follow FD/path identity around bounded reads. Preserve its inode, ownership and mode. Ordinary contexts retain atomic private restoration, including write-only files; changed/foreign/writable/linked context is not adopted. This changes context restoration, not host approval or OpenShell policy admission.

Validation:

  • Real Linux root/UID1500 baseline/candidate A/B: baseline fails two cases; candidate passes all seven without skips, including denied workload unlink/chmod and pathname replacement. Exact source and executed steps independently verified.
  • Full frozen local suite: 6,323 passed, 16 skipped; seven root-only skips are separately qualified above, nine optional/platform skips remain unqualified. Live-provider tests are not claimed.
  • Required make ci-lint: Ruff/format pass; errors-only type gate 0 errors, 924 existing warnings. Secret scan passes.

Verification and limitations · CHAGELOG.md. No version bump, publication, deployment or hosted-CI success is claimed.

@PurpleCHOIms
PurpleCHOIms marked this pull request as ready for review November 15, 2026 20:46
@PurpleCHOIms
PurpleCHOIms merged commit 98e51d3 into main Nov 15, 2026
25 checks passed
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