Skip to content

[DRAFT Security RDTE] Real UID1000 peer denied with deliberately permissive synthetic socket DAC - #217

Draft
mark-e-deyoung wants to merge 2 commits into
rdte/protected-control-peer-auth-r1-20261123from
rdte/protected-control-real-crossuid-r1-20261123
Draft

mark-e-deyoung wants to merge 2 commits into
rdte/protected-control-peer-auth-r1-20261123from
rdte/protected-control-real-crossuid-r1-20261123

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

R040 independent, real-numeric-UID negative qualification

Stacks strictly on #215 corrected source eebbf13c6d787c269193544306b56c96f258ea2d; exact initial 010e1348a2254eda990cdee9facbf21437c55f61. No changes to the broker, Compose, runtime, protected main or other actor branches. Three additive files: independent Go subprocess test, dedicated GitHub Actions workflow, scope/limitations document.

Why this test differs from #215: prior rootless test proves real kernel-peer retrieval but uses the test account and intentionally mismatched expected UID. This test runs as root inside a cap-dropped, read-only, networkless public disposable OCI container and uses only SETUID/SETGID capability to start a real separate UID/GID1000 process. A freshly created synthetic /tmp socket is intentionally exposed with permissive DAC for this test only, so the guest must be able to connect; then the root broker must reject it with fixed CONTROL_IPC=DENIED from SO_PEERCRED. No owner record may be created. Captured user or Docker diagnostics are never printed. Base image pinned to source-approved Debian digest, no publication, private GHA, host storage, Wine application or external target.

Acceptance: exact-head public [Real Cross-UID Protected Control Negative RDTE] workflow must pass; also Go vet/-race/test and full CI. Deliberate root-cap test uses Docker guest namespace only, not a privileged host operation.

Nonclaims: does not prove user namespace mappings, control mount identity under TrueNAS, API/guest UID separation, authenticated roles, audit or human STOP. Root-only socket is not deployed. Existing /artifacts/sessions writer inode replacement is still a release STOP for untrusted Wine workloads. Draft only; no merge/release or hardware.

Copy link
Copy Markdown
Collaborator Author

R040 actual numeric Linux UID1000 negative, exact-head terminal PASS

First source 010e1348a2254eda990cdee9facbf21437c55f61 container CI #45260451256 FAILED before test code, due GitHub checkout ref erroneously prefixed by '\'. Workflow-only correction yields current dd75b021d9d2ef859a32469278b2efd502c2e0a0. Exact-head public disposable real cross-UID container #45260762598 TERMINAL SUCCESS, Go vet/race/build #45260762266 SUCCESS, BuildKit publication guard #45260762251 SUCCESS; broad CI #45260762262 still IN PROGRESS at readback. Inside cap-dropped read-only networkless OCI, SETUID/GID permits distinct UID/GID1000 child to actually connect to a deliberately weakened synthetic DAC socket; root-only SO_PEERCRED handler returns DENIED, no owner record created. Tests numeric UID in a single namespace only. Neither production supervisor/guest principal split, rootless host userNS, real IPC mounting nor untrusted Wine guest admission is proven. #210 runtime lock path still guest writable; release STOP.

This branch has not been deployed

No deployments
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