From 3d188ef884d6147d579e59eb8f51332bb8959ad5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 7 Nov 2025 04:02:40 +0900 Subject: std: separate seccomp constants This avoids inadvertently using PNRs as syscall numbers. Signed-off-by: Ophestra --- container/std/syscall_extra_linux_386.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'container/std/syscall_extra_linux_386.go') diff --git a/container/std/syscall_extra_linux_386.go b/container/std/syscall_extra_linux_386.go index f23c919e..7b7eaf34 100644 --- a/container/std/syscall_extra_linux_386.go +++ b/container/std/syscall_extra_linux_386.go @@ -1,13 +1,13 @@ package std -var syscallNumExtra = map[string]int{ - "kexec_file_load": SYS_KEXEC_FILE_LOAD, - "subpage_prot": SYS_SUBPAGE_PROT, - "switch_endian": SYS_SWITCH_ENDIAN, +var syscallNumExtra = map[string]ScmpSyscall{ + "kexec_file_load": SNR_KEXEC_FILE_LOAD, + "subpage_prot": SNR_SUBPAGE_PROT, + "switch_endian": SNR_SWITCH_ENDIAN, } const ( - SYS_KEXEC_FILE_LOAD = __PNR_kexec_file_load - SYS_SUBPAGE_PROT = __PNR_subpage_prot - SYS_SWITCH_ENDIAN = __PNR_switch_endian + SNR_KEXEC_FILE_LOAD ScmpSyscall = __PNR_kexec_file_load + SNR_SUBPAGE_PROT ScmpSyscall = __PNR_subpage_prot + SNR_SWITCH_ENDIAN ScmpSyscall = __PNR_switch_endian ) -- cgit v1.3.1