Repository navigation
fix(sandbox): validate filesystem policy anchors - #5278
Conversation
Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
|
🌿 Preview your docs: https://nvidia-preview-pr-5278.docs.buildwithfern.com/openshell |
|
Label |
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. policy — No explicit risk acceptance foundFilesystem policy paths and included workdirs previously followed valid symlinks; symlinks beneath workload-owned or writable directories now abort launch in both Landlock modes.
2. policy — No explicit risk acceptance foundlandlock.compatibility: best_effort previously continued with baseline-only restrictions when a nonempty effective path list yielded no usable paths; it now aborts launch.
Review details
Advisory review; publication gates are unchanged. |
PR Review StatusThe independent code review found no blocking findings. The filesystem policy guidance and regression coverage are included. Required checks are still running; the standard E2E suite was rerun on this head after applying Gator metadata
|
both are acceptable changes |
Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
|
@shiju-nv Both findings are addressed in a597c94. Could you take another look?
Validation: 70 SSH tests, 5 Docker end-to-end tests, Clippy, formatting, and commit-hook checks passed. |
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. policy — Risk explicitly acceptedfilesystem_policy.read_only/read_write and included workdirs previously followed valid symlinks, but now abort launch when a symlink has a workload-owned or writable ancestor.
2. policy — Risk explicitly acceptedlandlock.compatibility: best_effort previously continued with baseline-only restrictions when a nonempty effective path list yielded no usable paths, but now aborts launch.
Review details
Advisory review; publication gates are unchanged. |
PR Review StatusThanks @johntmyers, I checked your update against @shiju-nv's two SSH requests. The independent follow-up review found no blocking findings: startup diagnostics now use the retained writer with a 50 ms timeout, and shell/exec requests reject an existing main attachment. The regression tests cover zero and small receive windows with sibling completion, plus continued attachment input and lease reacquisition after close. Tests were inspected during this review; current-head CI is still running. Both requests are addressed in code. Shiju's human-owned review threads remain open for his confirmation. The earlier acceptance of the filesystem-policy compatibility changes remains in effect. Blocking findings: None. Carried Gator findings: None. Gator metadata
|
Monitoring CompleteMonitoring is complete because this PR has merged. Final status: Gator reached I removed the active |
Summary
Validate filesystem policy paths through open descriptors and reject symlinks beneath workload-modifiable directories. Preserve protected system aliases and return command startup errors promptly over SSH.
Changes
Release Notes
Filesystem policy paths through symlinks inside writable workspaces now fail launch, including in best-effort mode. Specify their target paths directly.
Testing
Checklist