Add PARISC, LOONGARCH64, M68K, SH, and SHEB seccomp architectures #327
Merged
utam0k merged 2 commits intoyouki-dev:mainfrom Mar 10, 2026
Merged
Add PARISC, LOONGARCH64, M68K, SH, and SHEB seccomp architectures #327utam0k merged 2 commits intoyouki-dev:mainfrom
utam0k merged 2 commits intoyouki-dev:mainfrom
Conversation
Signed-off-by: hayama17 <kohei.hayama.9r@gmail.com>
…B seccomp architectures Signed-off-by: hayama17 <kohei.hayama.9r@gmail.com>
utam0k
approved these changes
Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
What this PR does / why we need it
Add missing
Archenum variants for seccomp architecture filtering.The following architectures are defined in the OCI runtime spec but were absent from the Rust implementation:
SCMP_ARCH_PARISCAUDIT_ARCH_PARISC(EM_PARISC)EM_PARISC=150x0000000fSCMP_ARCH_PARISC64AUDIT_ARCH_PARISC64(EM_PARISC|__AUDIT_ARCH_64BIT)EM_PARISC=150x8000000fSCMP_ARCH_LOONGARCH64AUDIT_ARCH_LOONGARCH64(EM_LOONGARCH|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)EM_LOONGARCH=2580xc0000102SCMP_ARCH_M68KAUDIT_ARCH_M68K(EM_68K)EM_68K=40x00000004SCMP_ARCH_SHAUDIT_ARCH_SHEL(EM_SH|__AUDIT_ARCH_LE)EM_SH=420x4000002aSCMP_ARCH_SHEBAUDIT_ARCH_SH(EM_SH)EM_SH=420x0000002aFlags are defined in linux/audit.h L393-L394:
__AUDIT_ARCH_64BIT=0x80000000__AUDIT_ARCH_LE=0x40000000Note:
SCMP_ARCH_SHandSCMP_ARCH_SHEBare intentionally reversed relative to their names —SCMP_ARCH_SHmaps toAUDIT_ARCH_SHEL(LE) andSCMP_ARCH_SHEBmaps toAUDIT_ARCH_SH(BE), following seccomp.h.in L241-L242.Which issue(s) this PR fixes
Fixes #311
Special notes for your reviewer
Round-trip tests (
to_string/parse) for all new variants are added insrc/runtime/linux.rs.Does this PR introduce a user-facing change?