From 938cf9fc14dc9df5063abc2a0142b74885d6be3b Mon Sep 17 00:00:00 2001 From: Kenta Tada Date: Thu, 23 Jul 2020 17:18:50 +0900 Subject: [PATCH] Update seccomp architectures to support RISCV64 Signed-off-by: Kenta Tada --- config-linux.md | 3 ++- schema/defs-linux.json | 3 ++- specs-go/config.go | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config-linux.md b/config-linux.md index 6f710daf8..0acdf56ac 100644 --- a/config-linux.md +++ b/config-linux.md @@ -570,7 +570,7 @@ The following parameters can be specified to set up seccomp: * **`defaultAction`** *(string, REQUIRED)* - the default action for seccomp. Allowed values are the same as `syscalls[].action`. * **`architectures`** *(array of strings, OPTIONAL)* - the architecture used for system calls. - A valid list of constants as of libseccomp v2.3.2 is shown below. + A valid list of constants as of libseccomp v2.5.0 is shown below. * `SCMP_ARCH_X86` * `SCMP_ARCH_X86_64` @@ -590,6 +590,7 @@ The following parameters can be specified to set up seccomp: * `SCMP_ARCH_S390X` * `SCMP_ARCH_PARISC` * `SCMP_ARCH_PARISC64` + * `SCMP_ARCH_RISCV64` * **`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 8b34ca94b..73a14fc53 100644 --- a/schema/defs-linux.json +++ b/schema/defs-linux.json @@ -47,7 +47,8 @@ "SCMP_ARCH_S390", "SCMP_ARCH_S390X", "SCMP_ARCH_PARISC", - "SCMP_ARCH_PARISC64" + "SCMP_ARCH_PARISC64", + "SCMP_ARCH_RISCV64" ] }, "SeccompAction": { diff --git a/specs-go/config.go b/specs-go/config.go index 3dc9efd23..5915f1fd1 100644 --- a/specs-go/config.go +++ b/specs-go/config.go @@ -628,6 +628,7 @@ const ( ArchS390X Arch = "SCMP_ARCH_S390X" ArchPARISC Arch = "SCMP_ARCH_PARISC" ArchPARISC64 Arch = "SCMP_ARCH_PARISC64" + ArchRISCV64 Arch = "SCMP_ARCH_RISCV64" ) // LinuxSeccompAction taken upon Seccomp rule match