Skip to content

Commit

Permalink
Add loong64 support for seccomp
Browse files Browse the repository at this point in the history
Signed-off-by: zhaixiaojuan <zhaixiaojuan@loongson.cn>
  • Loading branch information
zhaixiaojuan committed Apr 6, 2023
1 parent a7c7692 commit 6c5a345
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
3 changes: 2 additions & 1 deletion schema/defs-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"SCMP_ARCH_S390X",
"SCMP_ARCH_PARISC",
"SCMP_ARCH_PARISC64",
"SCMP_ARCH_RISCV64"
"SCMP_ARCH_RISCV64",
"SCMP_ARCH_LOONGARCH64"
]
},
"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 @@ -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
Expand Down

0 comments on commit 6c5a345

Please sign in to comment.