Skip to content

Commit c162ccc

Browse files
authored
fix(sandbox): validate filesystem policy anchors (#5278)
* fix(sandbox): validate filesystem policy anchors Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(ssh): keep startup failures from stalling sessions Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> --------- Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com>
1 parent 11ff945 commit c162ccc

7 files changed

Lines changed: 702 additions & 79 deletions

File tree

‎crates/openshell-sandbox/README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ the lower-level mechanisms used by that orchestration and the boundary server.
1010
Unsafe kernel ABI, process-launch, and descriptor-ownership operations stay in
1111
this runtime crate behind safe APIs where their contracts can be enforced.
1212

13+
Landlock policy anchors are resolved relative to open directory descriptors.
14+
Symlinks are followed only through ancestors that the workload neither owns nor
15+
can write, preserving system aliases while rejecting mutable workspace links.
16+
The rule uses the resolved descriptor directly. Unsafe resolution and an empty
17+
effective allowlist fail the launch independently of Landlock compatibility;
18+
they cannot trigger the best-effort fallback to baseline-only restrictions.
19+
1320
The network broker retains source socket descriptors only while preparing a
1421
workload endpoint. A successful connection or `listen` releases that reference;
1522
the kernel then tracks the lifetime through workload-owned descriptors. Native

0 commit comments

Comments
 (0)