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/seccomp.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/seccomp.go')
| -rw-r--r-- | container/std/seccomp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container/std/seccomp.go b/container/std/seccomp.go index 05bc4269..212b8fdc 100644 --- a/container/std/seccomp.go +++ b/container/std/seccomp.go @@ -46,7 +46,7 @@ type ( // MarshalJSON resolves the name of [ScmpSyscall] and encodes it as a [json] string. // If such a name does not exist, the syscall number is encoded instead. func (num *ScmpSyscall) MarshalJSON() ([]byte, error) { - n := int(*num) + n := *num for name, cur := range Syscalls() { if cur == n { return json.Marshal(name) |
