You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filesystem operations cannot target workload mount namespaces #829
Filesystem operations are currently resolved by vminitd in its own mount namespace. This works for paths visible there, but it cannot address mounts that exist only in a workload container's mount namespace, including block-backed mounts attached by the OCI runtime.
This prevents callers such as apple/container's clean implementation from trimming named volumes through the existing filesystem-operation API.
A safe implementation needs to carry workload identity through the RPC and resolve the target through the managed init process. It must not concatenate an untrusted path with /proc/<pid>/root or re-resolve a numeric PID at operation time because that would introduce traversal, procfs magic-link, and PID-reuse risks.
The proposed implementation:
adds an optional container identifier to FilesystemOperationRequest
validates canonical container-absolute paths on both sides
pins the init process /proc/<pid> descriptor at process start
resolves targets with openat2(RESOLVE_IN_ROOT | RESOLVE_NO_MAGICLINKS)
preserves the legacy operation path for callers that intentionally target the vminitd namespace
@recrack I closed #830 but I noticed you have a couple of features in the issue here for hardening the implementation. A follow-up issue to bring these in would be welcome!
Activity
jglogan commentedon Aug 28, 2026
@recrack I closed #830 but I noticed you have a couple of features in the issue here for hardening the implementation. A follow-up issue to bring these in would be welcome!
[vminitd]: update filesystem operation to run in new namespace (apple…