From d5532aade0c3f042c5daa7d1c16e7cce2f4b524a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 2 Jul 2025 00:22:27 +0900 Subject: sandbox/seccomp: native rule slice in helpers These helper functions took FilterPreset as input for ease of integration. This moves them to []NativeRule. Signed-off-by: Ophestra --- internal/app/internal/setuid/shim.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/app') diff --git a/internal/app/internal/setuid/shim.go b/internal/app/internal/setuid/shim.go index 196fcfe9..100cf1cc 100644 --- a/internal/app/internal/setuid/shim.go +++ b/internal/app/internal/setuid/shim.go @@ -163,7 +163,10 @@ func ShimMain() { hlog.PrintBaseError(err, "cannot configure container:") } - if err := seccomp.Load(seccomp.PresetStrict, seccomp.AllowMultiarch); err != nil { + if err := seccomp.Load( + seccomp.Preset(seccomp.PresetStrict, seccomp.AllowMultiarch), + seccomp.AllowMultiarch, + ); err != nil { log.Fatalf("cannot load syscall filter: %v", err) } -- cgit v1.3.1