diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-07 04:02:40 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-07 04:30:06 +0900 |
| commit | 3d188ef884d6147d579e59eb8f51332bb8959ad5 (patch) | |
| tree | 4d5bd73ee6e9f5c4fde3824ae2c366ea2ef702f1 /container/std/syscall_extra_linux_386.go | |
| parent | 34ccda84b23f381b22496fda89785f4a48802ab6 (diff) | |
std: separate seccomp constants
This avoids inadvertently using PNRs as syscall numbers.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/std/syscall_extra_linux_386.go')
| -rw-r--r-- | container/std/syscall_extra_linux_386.go | 14 |
1 files changed, 7 insertions, 7 deletions
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 ) |
