From fba201c9953a490da914b09e09eaaa697a4b36e1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 5 Nov 2025 06:00:39 +0900 Subject: container/std: relocate rule types This enables its use in hst for #15. Signed-off-by: Ophestra --- internal/outcome/dispatcher.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/outcome/dispatcher.go') diff --git a/internal/outcome/dispatcher.go b/internal/outcome/dispatcher.go index 443148c6..3427a484 100644 --- a/internal/outcome/dispatcher.go +++ b/internal/outcome/dispatcher.go @@ -13,6 +13,7 @@ import ( "hakurei.app/container" "hakurei.app/container/check" "hakurei.app/container/seccomp" + "hakurei.app/container/std" "hakurei.app/internal" "hakurei.app/message" "hakurei.app/system/dbus" @@ -86,7 +87,7 @@ type syscallDispatcher interface { containerWait(z *container.Container) error // seccompLoad provides [seccomp.Load]. - seccompLoad(rules []seccomp.NativeRule, flags seccomp.ExportFlag) error + seccompLoad(rules []std.NativeRule, flags seccomp.ExportFlag) error // mustHsuPath provides [internal.MustHsuPath]. mustHsuPath() *check.Absolute @@ -151,7 +152,7 @@ func (direct) containerStart(z *container.Container) error { return z.Start() } func (direct) containerServe(z *container.Container) error { return z.Serve() } func (direct) containerWait(z *container.Container) error { return z.Wait() } -func (direct) seccompLoad(rules []seccomp.NativeRule, flags seccomp.ExportFlag) error { +func (direct) seccompLoad(rules []std.NativeRule, flags seccomp.ExportFlag) error { return seccomp.Load(rules, flags) } -- cgit v1.3.1