aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/seccomp.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-28 01:09:26 +0900
committerOphestra <cat@gensokyo.uk>2025-03-28 01:35:56 +0900
commit660a2898dc0dbfe9963d8f336e04582955b56b8a (patch)
treeee6dee579efb593c04950f481270be81a6ea1a19 /test/sandbox/seccomp.go
parentfaf59e12c09348de3fe6a6f491efcdc820ef93d1 (diff)
test/sandbox/ptrace: dump seccomp bpf program
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/seccomp.go')
-rw-r--r--test/sandbox/seccomp.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/sandbox/seccomp.go b/test/sandbox/seccomp.go
index 9ccf1348..437679c4 100644
--- a/test/sandbox/seccomp.go
+++ b/test/sandbox/seccomp.go
@@ -10,9 +10,7 @@ import (
*/
import "C"
-const NULL = 0
-
-func TrySyscalls() error {
+func trySyscalls() error {
testCases := []struct {
name string
errno syscall.Errno