Repository navigation
Allow mapping a host file source to a different destination path in the sandbox #1366
Copy link
Copy link
Open
Open
Copy link
Labels
Backend-IsolationSessionWindows IsolationSession backend behavior or integration.Windows IsolationSession backend behavior or integration.Backend-MicroVMNanVix-based micro-VM backend behavior or integration.NanVix-based micro-VM backend behavior or integration.Backend-ProcessContainerWindows ProcessContainer behavior, including BaseContainer and AppContainer isolation tiers.Windows ProcessContainer behavior, including BaseContainer and AppContainer isolation tiers.Backend-SeatbeltmacOS process isolation implemented with Seatbelt.macOS process isolation implemented with Seatbelt.Backend-WSLCWindows WSL Container backend behavior or integration.Windows WSL Container backend behavior or integration.Issue-FeatureA request for new or expanded product functionality.A request for new or expanded product functionality.
Description
Activity
- addedIssue-FeatureA request for new or expanded product functionality.A request for new or expanded product functionality.Needs-TriageHas not yet been reviewed, classified, and routed.Has not yet been reviewed, classified, and routed.
on Oct 1, 2026 kanismohammed commented
on Oct 2, 2026 CollaboratorMore actionsThis is a virtualization ask. I would like to understand why would the caller not grant permission on the actual file /run/user/1000/app/config.prepared
- addedBackend-ProcessContainerWindows ProcessContainer behavior, including BaseContainer and AppContainer isolation tiers.Windows ProcessContainer behavior, including BaseContainer and AppContainer isolation tiers.Backend-MicroVMNanVix-based micro-VM backend behavior or integration.NanVix-based micro-VM backend behavior or integration.Backend-WSLCWindows WSL Container backend behavior or integration.Windows WSL Container backend behavior or integration.Backend-IsolationSessionWindows IsolationSession backend behavior or integration.Windows IsolationSession backend behavior or integration.Backend-SeatbeltmacOS process isolation implemented with Seatbelt.macOS process isolation implemented with Seatbelt.and removedNeeds-TriageHas not yet been reviewed, classified, and routed.Has not yet been reviewed, classified, and routed.
on Oct 5, 2026 caarlos0 commented
on Oct 8, 2026 CollaboratorAuthorMore actionse.g. if the file contains a secret, we could mask it, and give the sandbox the masked version.
this is came up when thinking about expanding masked secrets to files as well
Metadata
Metadata
Assignees
Labels
Backend-IsolationSessionWindows IsolationSession backend behavior or integration.Windows IsolationSession backend behavior or integration.Backend-MicroVMNanVix-based micro-VM backend behavior or integration.NanVix-based micro-VM backend behavior or integration.Backend-ProcessContainerWindows ProcessContainer behavior, including BaseContainer and AppContainer isolation tiers.Windows ProcessContainer behavior, including BaseContainer and AppContainer isolation tiers.Backend-SeatbeltmacOS process isolation implemented with Seatbelt.macOS process isolation implemented with Seatbelt.Backend-WSLCWindows WSL Container backend behavior or integration.Windows WSL Container backend behavior or integration.Issue-FeatureA request for new or expanded product functionality.A request for new or expanded product functionality.
Description of the new feature / enhancement
Allow a filesystem policy to map a host source file to a different destination path inside the sandbox.
Today a policy can grant a path read-only or read-write access, or deny it. It cannot make the sandboxed process see a different file at a given path. Some callers need to give a process a file at the path where a tool expects it, with content prepared by the caller, without modifying the file on the host.
Example: a caller prepares
/run/user/1000/app/config.preparedand wants the sandboxed process to see it as~/.config/tool/config, while the real~/.config/tool/configstays untouched on the host.Proposed technical implementation details
A minimal shape could be a list of read-only mappings in the filesystem policy:
Possible semantics:
Backend notes:
/dev/nullover denied files, the/etc/hostspin).