Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loong64 support for seccomp #1187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L708: A valid list of constants as of libseccomp v2.5.0 is shown below.

This has to be updated to v2.6.0 (and we have to wait for v2.6.0 to be released)


* **`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