From a462341a0a3e1132f3fcdb1efb0f7a56e851a9e1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 01:12:02 +0900 Subject: container: repeat and impossible state types This moves repeated Op errors and impossible internal state errors off of msg. Signed-off-by: Ophestra --- container/autoroot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'container/autoroot.go') diff --git a/container/autoroot.go b/container/autoroot.go index 69595c2e..32b50625 100644 --- a/container/autoroot.go +++ b/container/autoroot.go @@ -3,7 +3,6 @@ package container import ( "encoding/gob" "fmt" - "io/fs" ) func init() { gob.Register(new(AutoRootOp)) } @@ -53,7 +52,7 @@ func (r *AutoRootOp) early(state *setupState, k syscallDispatcher) error { func (r *AutoRootOp) apply(state *setupState, k syscallDispatcher) error { if state.nonrepeatable&nrAutoRoot != 0 { - return msg.WrapErr(fs.ErrInvalid, "autoroot is not repeatable") + return OpRepeatError("autoroot") } state.nonrepeatable |= nrAutoRoot -- cgit v1.3.1