From 584405f7ccd4c8c0e63762e113f4650f2abd469e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 8 Apr 2025 01:59:45 +0900 Subject: sandbox/seccomp: rename flag type and constants The names are ambiguous. Rename them to make more sense. Signed-off-by: Ophestra --- sandbox/container_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sandbox/container_test.go') diff --git a/sandbox/container_test.go b/sandbox/container_test.go index f3d08543..0ba75da5 100644 --- a/sandbox/container_test.go +++ b/sandbox/container_test.go @@ -164,7 +164,7 @@ func e(root, target, vfsOptstr, fsType, source, fsOptstr string) *vfs.MountInfoE func TestContainerString(t *testing.T) { container := sandbox.New(context.TODO(), "ldd", "/usr/bin/env") container.Flags |= sandbox.FAllowDevel - container.Seccomp |= seccomp.FlagMultiarch + container.Seccomp |= seccomp.FilterMultiarch want := `argv: ["ldd" "/usr/bin/env"], flags: 0x2, seccomp: 0x2e` if got := container.String(); got != want { t.Errorf("String: %s, want %s", got, want) -- cgit v1.3.1