Skip to content

feat(seccomp): Add support for LoongArch64 architecture#6

Merged
thaJeztah merged 1 commit intomoby:mainfrom
yzewei:add-loong
Apr 24, 2026
Merged

feat(seccomp): Add support for LoongArch64 architecture#6
thaJeztah merged 1 commit intomoby:mainfrom
yzewei:add-loong

Conversation

@yzewei
Copy link
Copy Markdown
Contributor

@yzewei yzewei commented Oct 15, 2025

What is this change?

This pull request adds support for the LoongArch64 architecture to the default Seccomp profile.

LoongArch64 is a modern instruction set architecture developed by Loongson Technology. Adding it to the default profile is essential for ensuring containers running on LoongArch64 systems have a secure, functional default Seccomp policy.

Why is this needed?

Without this change, containers running on LoongArch64 hosts might default to an overly restrictive or non-functional Seccomp profile, potentially leading to runtime issues or requiring users to manually configure a policy. This patch ensures parity with other supported architectures like RISCV64, ARM64, etc.

How does this address the need?

The change modifies three files to incorporate LoongArch64 support:

  1. seccomp/default.json: Adds SCMP_ARCH_LOONGARCH64 to the list of supported architectures in the JSON profile.
  2. seccomp/default_linux.go: Adds specs.ArchLOONGARCH64 to the list of default architectures for Linux.
  3. seccomp/seccomp_linux.go: Maps the Go environment's loong64 string to the appropriate specs.ArchLOONGARCH64 and maps it back to the native loongarch64 string, allowing the runtime to correctly identify and use the architecture's profile.

/cc @moby/profiles-maintainers

@yzewei
Copy link
Copy Markdown
Contributor Author

yzewei commented Oct 15, 2025

@AkihiroSuda Thanks!

Signed-off-by: yzewei <yangzewei@loongson.cn>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 3d33685 into moby:main Apr 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants