Files
substrate/cmd
Haven Xia 7380e230dc ateom-gvisor: take the actor directories from the request (#1865)
This PR let ateom-gvisor reads the per-actor directories from the
`ActorDirs` (added in #1730) in the request instead of deriving them
from the actor UID.

The paths `ateom-gvisor` still builds itself are put into gvisor
specific `cmd/ateom-gvisor/actorpath.go`.

Resetting `runsc-state` and `pidfiles` moves from atelet's
`resetActorDirs` to ateom-gvisor's `main.go` to conduct at beginning of
`RunWorkload` and `RestoreWorkload`, which empties them at the start of
Run and Restore. Atelet doesn't actually read them, so #1730 drops them
from `ActorDirs`.

Added a new `ActorDirs` validation to reject a request with
`InvalidArgument` when `ActorDirs` is missing or any directory in it is
empty, relative or unclean.

The gVisor paths are removed from `internal/ateompath`; the rest goes
with ateom-microvm in the next PR.

Part of #1604.
2026-09-28 22:29:32 +00:00
..
2026-09-28 22:26:40 +00:00