Skip to content

Commit d438e29

Browse files
author
Mrunal Patel
authored
Merge pull request #1059 from KentaTada/support-riscv64
Update seccomp architectures to support RISCV64
2 parents 80426cc + 938cf9f commit d438e29

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
@@ -629,6 +629,7 @@ const (
629629
ArchS390X Arch = "SCMP_ARCH_S390X"
630630
ArchPARISC Arch = "SCMP_ARCH_PARISC"
631631
ArchPARISC64 Arch = "SCMP_ARCH_PARISC64"
632+
ArchRISCV64 Arch = "SCMP_ARCH_RISCV64"
632633
)
633634

634635
// LinuxSeccompAction taken upon Seccomp rule match

0 commit comments

Comments
 (0)