Repository navigation
Conversation
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
drew
marked this pull request as draft
November 24, 2026 06:33
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. rust-sdk — No explicit risk acceptance foundPreviously complete Rust structs now require
Review details
Advisory review; publication gates are unchanged. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
--privileged(--priv) mode so workloads can run as real guestUID 0inside VM-backed sandboxes (unblocking workloads that need root-owned image files, nested namespaces, or mounts, such as SWE-bench images, Chromium, andbwrap). Instead of relying on a capability-free non-root UID, Landlock, and a broad child seccomp deny list, privileged mode requires a VM boundary (openshell-driver-vmor Kubernetes with an explicitly configured VMRuntimeClasssuch as Kata) and moves enforcement into a boot-once, frozen BPF LSM seal plus namespace isolation, while keeping egress mediated throughseccomp_notify.Related Issue
Closes #5925
Changes
privilegedtoSandboxSpec/DriverSandboxSpec,supports_privilegedtoGetCapabilitiesResponse, and--privileged/--privtoopenshell sandbox create. Drivers that do not advertise support fail closed.openshell.kconfigfor root workloads (CONFIG_BPF_LSM=y, BTF, early lockdown, modules/kexec//dev/mem/uprobes disabled), stage bootstrap secrets into/run/openshelloutside the workload overlay, and launchopenshell-sandbox --privileged.openshell-sandboxprivileged runtime and BPF LSM: isolate workloads in dedicated PID, mount, cgroup, and loopback-only network namespaces viaworkload-hold+pivot_root; load and freeze (BPF_MAP_FREEZE) 18 BPF LSM hooks protecting the shim,bpf(),AF_VSOCK,init_net, runtime mounts, freezer cgroup, and live-reloadablefilesystem_policy(read_only/read_writeand shadow-mount prevention); drop kernel-escape caps while keeping workload caps; mediate egress with networking-onlyseccomp_notify+ADDFDand a minimal child seccomp filter blockingio_uring_*and nestedNEW_LISTENER.PrivilegedGuestProfileandPrivilegedSandboxAuditEvidenceverified by the supervisor onConfirm.privileged_runtime_class_name(OPENSHELL_K8S_PRIVILEGED_RUNTIME_CLASS_NAME/ Helmserver.privilegedRuntimeClassName), container-root (--workload-root /) submount handling, and kernel-TGID/parent-TGID handling so Kata Pod teardown works cleanly.e2e/rust/tests/vm_privileged.rscovering Chromium,bwrap, BPF LSM seal/policy enforcement, network mediation, and hard-Landlock rejection.Release Notes
VM-backed sandboxes (local VM driver and Kubernetes with an explicitly configured VM
RuntimeClasssuch as Kata) can now be launched withopenshell sandbox create --privileged(--priv) to run workloads as guestUID 0under a boot-once BPF LSM seal andseccomp_notifyegress mediation.Testing
cargo fmt,cargo clippy --workspace --all-targets,buf lint,helm lint,helm:docs:check, license check)e2e-vm.shincludingvm_privileged, plus live Kata Containers on k3s verification)Checklist