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 --- container/dispatcher.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'container/dispatcher.go') diff --git a/container/dispatcher.go b/container/dispatcher.go index 5f8c72cb..e1dae6eb 100644 --- a/container/dispatcher.go +++ b/container/dispatcher.go @@ -11,6 +11,7 @@ import ( "syscall" "hakurei.app/container/seccomp" + "hakurei.app/container/std" "hakurei.app/message" ) @@ -62,7 +63,7 @@ type syscallDispatcher interface { ensureFile(name string, perm, pperm os.FileMode) error // seccompLoad provides [seccomp.Load]. - seccompLoad(rules []seccomp.NativeRule, flags seccomp.ExportFlag) error + seccompLoad(rules []std.NativeRule, flags seccomp.ExportFlag) error // notify provides [signal.Notify]. notify(c chan<- os.Signal, sig ...os.Signal) // start starts [os/exec.Cmd]. @@ -164,7 +165,7 @@ func (direct) ensureFile(name string, perm, pperm os.FileMode) error { return ensureFile(name, perm, pperm) } -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) } func (direct) notify(c chan<- os.Signal, sig ...os.Signal) { signal.Notify(c, sig...) } -- cgit v1.3.1