mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
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.