Skip to content

Commit 938cf9f

Browse files
Kenta TadaKenta Tada
authored andcommitted
Update seccomp architectures to support RISCV64
Signed-off-by: Kenta Tada <[email protected]>
1 parent 643c142 commit 938cf9f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

config-linux.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ The following parameters can be specified to set up seccomp:
570570

571571
* **`defaultAction`** *(string, REQUIRED)* - the default action for seccomp. Allowed values are the same as `syscalls[].action`.
572572
* **`architectures`** *(array of strings, OPTIONAL)* - the architecture used for system calls.
573-
A valid list of constants as of libseccomp v2.3.2 is shown below.
573+
A valid list of constants as of libseccomp v2.5.0 is shown below.
574574

575575
* `SCMP_ARCH_X86`
576576
* `SCMP_ARCH_X86_64`
@@ -590,6 +590,7 @@ The following parameters can be specified to set up seccomp:
590590
* `SCMP_ARCH_S390X`
591591
* `SCMP_ARCH_PARISC`
592592
* `SCMP_ARCH_PARISC64`
593+
* `SCMP_ARCH_RISCV64`
593594

594595
* **`flags`** *(array of strings, OPTIONAL)* - list of flags to use with seccomp(2).
595596

schema/defs-linux.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"SCMP_ARCH_S390",
4848
"SCMP_ARCH_S390X",
4949
"SCMP_ARCH_PARISC",
50-
"SCMP_ARCH_PARISC64"
50+
"SCMP_ARCH_PARISC64",
51+
"SCMP_ARCH_RISCV64"
5152
]
5253
},
5354
"SeccompAction": {

specs-go/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ const (
628628
ArchS390X Arch = "SCMP_ARCH_S390X"
629629
ArchPARISC Arch = "SCMP_ARCH_PARISC"
630630
ArchPARISC64 Arch = "SCMP_ARCH_PARISC64"
631+
ArchRISCV64 Arch = "SCMP_ARCH_RISCV64"
631632
)
632633

633634
// LinuxSeccompAction taken upon Seccomp rule match

0 commit comments

Comments
 (0)