aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--container/container_test.go2
-rw-r--r--container/seccomp/std_test.go7
-rw-r--r--ext/syscall_linux_ppc64le.go31
-rw-r--r--internal/dbus/dbus_test.go2
-rw-r--r--internal/helper/args_test.go2
-rw-r--r--internal/helper/cmd_test.go2
-rw-r--r--internal/helper/container_test.go2
-rw-r--r--internal/helper/helper_test.go2
-rw-r--r--internal/lockedfile/internal/filelock/filelock_test.go2
-rw-r--r--internal/lockedfile/lockedfile_test.go2
-rw-r--r--internal/lockedfile/transform_test.go2
-rw-r--r--ldd/exec_test.go2
-rw-r--r--pkg/exec_test.go2
13 files changed, 24 insertions, 36 deletions
diff --git a/container/container_test.go b/container/container_test.go
index e70e23d3..5185a858 100644
--- a/container/container_test.go
+++ b/container/container_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package container_test
import (
diff --git a/container/seccomp/std_test.go b/container/seccomp/std_test.go
index 93b5613c..4b90badf 100644
--- a/container/seccomp/std_test.go
+++ b/container/seccomp/std_test.go
@@ -16,9 +16,12 @@ func TestSyscallResolveName(t *testing.T) {
t.Run(name, func(t *testing.T) {
t.Parallel()
- // this checks the std implementation against libseccomp.
+ // this checks the ext implementation against libseccomp.
if got, ok := syscallResolveName(name); !ok || got != want {
- t.Errorf("syscallResolveName(%q) = %d, want %d", name, got, want)
+ t.Errorf(
+ "seccomp_syscall_resolve_name(%q) = %d, want %d",
+ name, got, want,
+ )
}
})
}
diff --git a/ext/syscall_linux_ppc64le.go b/ext/syscall_linux_ppc64le.go
index 0457ffa5..e3d4de90 100644
--- a/ext/syscall_linux_ppc64le.go
+++ b/ext/syscall_linux_ppc64le.go
@@ -319,30 +319,10 @@ var syscallNum = map[string]SyscallNum{
"fanotify_init": SNR_FANOTIFY_INIT,
"fanotify_mark": SNR_FANOTIFY_MARK,
"prlimit64": SNR_PRLIMIT64,
- "socket": SNR_SOCKET,
- "bind": SNR_BIND,
- "connect": SNR_CONNECT,
- "listen": SNR_LISTEN,
- "accept": SNR_ACCEPT,
- "getsockname": SNR_GETSOCKNAME,
- "getpeername": SNR_GETPEERNAME,
- "socketpair": SNR_SOCKETPAIR,
- "send": SNR_SEND,
- "sendto": SNR_SENDTO,
- "recv": SNR_RECV,
- "recvfrom": SNR_RECVFROM,
- "shutdown": SNR_SHUTDOWN,
- "setsockopt": SNR_SETSOCKOPT,
- "getsockopt": SNR_GETSOCKOPT,
- "sendmsg": SNR_SENDMSG,
- "recvmsg": SNR_RECVMSG,
- "recvmmsg": SNR_RECVMMSG,
- "accept4": SNR_ACCEPT4,
"name_to_handle_at": SNR_NAME_TO_HANDLE_AT,
"open_by_handle_at": SNR_OPEN_BY_HANDLE_AT,
"clock_adjtime": SNR_CLOCK_ADJTIME,
"syncfs": SNR_SYNCFS,
- "sendmmsg": SNR_SENDMMSG,
"setns": SNR_SETNS,
"process_vm_readv": SNR_PROCESS_VM_READV,
"process_vm_writev": SNR_PROCESS_VM_WRITEV,
@@ -370,17 +350,6 @@ var syscallNum = map[string]SyscallNum{
"pkey_mprotect": SNR_PKEY_MPROTECT,
"rseq": SNR_RSEQ,
"io_pgetevents": SNR_IO_PGETEVENTS,
- "semtimedop": SNR_SEMTIMEDOP,
- "semget": SNR_SEMGET,
- "semctl": SNR_SEMCTL,
- "shmget": SNR_SHMGET,
- "shmctl": SNR_SHMCTL,
- "shmat": SNR_SHMAT,
- "shmdt": SNR_SHMDT,
- "msgget": SNR_MSGGET,
- "msgsnd": SNR_MSGSND,
- "msgrcv": SNR_MSGRCV,
- "msgctl": SNR_MSGCTL,
"pidfd_send_signal": SNR_PIDFD_SEND_SIGNAL,
"io_uring_setup": SNR_IO_URING_SETUP,
"io_uring_enter": SNR_IO_URING_ENTER,
diff --git a/internal/dbus/dbus_test.go b/internal/dbus/dbus_test.go
index f6175567..22126e3f 100644
--- a/internal/dbus/dbus_test.go
+++ b/internal/dbus/dbus_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package dbus_test
import (
diff --git a/internal/helper/args_test.go b/internal/helper/args_test.go
index c83c6790..16ce2a36 100644
--- a/internal/helper/args_test.go
+++ b/internal/helper/args_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package helper_test
import (
diff --git a/internal/helper/cmd_test.go b/internal/helper/cmd_test.go
index 3d29479c..7dfabe57 100644
--- a/internal/helper/cmd_test.go
+++ b/internal/helper/cmd_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package helper_test
import (
diff --git a/internal/helper/container_test.go b/internal/helper/container_test.go
index 02dc5346..9703bf82 100644
--- a/internal/helper/container_test.go
+++ b/internal/helper/container_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package helper_test
import (
diff --git a/internal/helper/helper_test.go b/internal/helper/helper_test.go
index a44d5ede..ec6bcf45 100644
--- a/internal/helper/helper_test.go
+++ b/internal/helper/helper_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package helper_test
import (
diff --git a/internal/lockedfile/internal/filelock/filelock_test.go b/internal/lockedfile/internal/filelock/filelock_test.go
index a545010d..9a26f7fc 100644
--- a/internal/lockedfile/internal/filelock/filelock_test.go
+++ b/internal/lockedfile/internal/filelock/filelock_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !js && !plan9 && !wasip1
+//go:build !qemu && !js && !plan9 && !wasip1
package filelock_test
diff --git a/internal/lockedfile/lockedfile_test.go b/internal/lockedfile/lockedfile_test.go
index c86b7786..38c57848 100644
--- a/internal/lockedfile/lockedfile_test.go
+++ b/internal/lockedfile/lockedfile_test.go
@@ -4,7 +4,7 @@
// js and wasip1 do not support inter-process file locking.
//
-//go:build !js && !wasip1
+//go:build !qemu && !js && !wasip1
package lockedfile_test
diff --git a/internal/lockedfile/transform_test.go b/internal/lockedfile/transform_test.go
index 95807493..7c93a0a8 100644
--- a/internal/lockedfile/transform_test.go
+++ b/internal/lockedfile/transform_test.go
@@ -4,7 +4,7 @@
// js and wasip1 do not support inter-process file locking.
//
-//go:build !js && !wasip1
+//go:build !qemu && !js && !wasip1
package lockedfile_test
diff --git a/ldd/exec_test.go b/ldd/exec_test.go
index 0546b9ad..2ad5b5bb 100644
--- a/ldd/exec_test.go
+++ b/ldd/exec_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package ldd_test
import (
diff --git a/pkg/exec_test.go b/pkg/exec_test.go
index a24c1e5e..2a000f6c 100644
--- a/pkg/exec_test.go
+++ b/pkg/exec_test.go
@@ -1,3 +1,5 @@
+//go:build !qemu
+
package pkg_test
import (