diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-04-08 01:59:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-04-08 01:59:45 +0900 |
| commit | 584405f7ccd4c8c0e63762e113f4650f2abd469e (patch) | |
| tree | f72d79d1a90e9bffe8f5c975e564ad40c602f2f7 /sandbox/container_test.go | |
| parent | 50127ed5f9bc89f38c7d5d1aa06b4d99229b9c64 (diff) | |
sandbox/seccomp: rename flag type and constants
The names are ambiguous. Rename them to make more sense.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/container_test.go')
| -rw-r--r-- | sandbox/container_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
