diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-08 19:48:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-08 20:02:09 +0900 |
| commit | e5baaf416f1404a4a9ae8581603524d868716325 (patch) | |
| tree | 944ef5ffc3c1a094a6ba21ff075a26e16618cd76 /internal/app/spcontainer.go | |
| parent | ee6c471fe6e183d78e396a23b2a92fd26bb31143 (diff) | |
internal/app: check transmitted ops
This simulates params to shim and this is the last step before params to shim is merged.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spcontainer.go')
| -rw-r--r-- | internal/app/spcontainer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/app/spcontainer.go b/internal/app/spcontainer.go index bce0e200..3827fa2e 100644 --- a/internal/app/spcontainer.go +++ b/internal/app/spcontainer.go @@ -1,6 +1,7 @@ package app import ( + "encoding/gob" "errors" "io/fs" "os" @@ -19,6 +20,8 @@ import ( const varRunNscd = fhs.Var + "run/nscd" +func init() { gob.Register(new(spParamsOp)) } + // spParamsOp initialises unordered fields of [container.Params] and the optional root filesystem. // This outcomeOp is hardcoded to always run first. type spParamsOp struct { @@ -113,6 +116,8 @@ func (s *spParamsOp) toContainer(state *outcomeStateParams) error { return nil } +func init() { gob.Register(spFilesystemOp{}) } + // spFilesystemOp applies configured filesystems to [container.Params], excluding the optional root filesystem. type spFilesystemOp struct{} |
