Skip to content

Commit

Permalink
Merge pull request #1059 from KentaTada/support-riscv64
Browse files Browse the repository at this point in the history
Update seccomp architectures to support RISCV64
  • Loading branch information
Mrunal Patel committed Aug 6, 2020
2 parents 80426cc + 938cf9f commit d438e29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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).

Expand Down
3 changes: 2 additions & 1 deletion schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"SCMP_ARCH_S390",
"SCMP_ARCH_S390X",
"SCMP_ARCH_PARISC",
"SCMP_ARCH_PARISC64"
"SCMP_ARCH_PARISC64",
"SCMP_ARCH_RISCV64"
]
},
"SeccompAction": {
Expand Down
1 change: 1 addition & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,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
Expand Down

0 comments on commit d438e29

Please sign in to comment.