From 6bf751b88999835cab6c2f5cf1c1bbb9192d124e Mon Sep 17 00:00:00 2001 From: zhaixiaojuan Date: Tue, 14 Mar 2023 16:18:07 +0800 Subject: [PATCH] Add loong64 support for seccomp --- config-linux.md | 1 + schema/defs-linux.json | 3 ++- specs-go/config.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config-linux.md b/config-linux.md index 3223e97f7..809711bc4 100644 --- a/config-linux.md +++ b/config-linux.md @@ -726,6 +726,7 @@ The following parameters can be specified to set up seccomp: * `SCMP_ARCH_PARISC` * `SCMP_ARCH_PARISC64` * `SCMP_ARCH_RISCV64` + * `SCMP_ARCH_LOONGARCH64` * **`flags`** *(array of strings, OPTIONAL)* - list of flags to use with seccomp(2). diff --git a/schema/defs-linux.json b/schema/defs-linux.json index 31f971a7f..7268de725 100644 --- a/schema/defs-linux.json +++ b/schema/defs-linux.json @@ -48,7 +48,8 @@ "SCMP_ARCH_S390X", "SCMP_ARCH_PARISC", "SCMP_ARCH_PARISC64", - "SCMP_ARCH_RISCV64" + "SCMP_ARCH_RISCV64", + "SCMP_ARCH_LOONGARCH64" ] }, "SeccompAction": { diff --git a/specs-go/config.go b/specs-go/config.go index 72407724e..a6e59db20 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -692,6 +692,7 @@ const ( ArchPARISC Arch = "SCMP_ARCH_PARISC" ArchPARISC64 Arch = "SCMP_ARCH_PARISC64" ArchRISCV64 Arch = "SCMP_ARCH_RISCV64" + ArchLOONGARCH64 Arch = "SCMP_ARCH_LOONGARCH64" ) // LinuxSeccompAction taken upon Seccomp rule match