Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

seccomp: goToNative values for loong64 and mipsle have no matching nativeToSeccomp key

Closed Beginner friendly
#52 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@ricardobranco777 is already working on this.

Since Oct 4, 2026.

  • #53 by @ricardobranco777 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
security

Research direction

Start at setupSeccomp and inspect the goToNative and nativeToSeccomp mappings, including the SCMP_ARCH_LOONGARCH64 entry in default.json. Align the two keys and add a test that every goToNative value has a nativeToSeccomp entry; done means Architectures is populated for loong64 and mipsle.

Written by the indexing model from the issue text.

Description

setupSeccomp does arch = goToNative[runtime.GOARCH] and then looks arch up in nativeToSeccomp. Two entries don't line up:

  • goToNative["loong64"] = "loongarch64", but nativeToSeccomp has "loong64".
  • goToNative["mipsle"] = "mipsel", but nativeToSeccomp has "mipsle".

On those two GOARCH values the archMap block is skipped and Architectures is not populated. For loong64, default.json has a SCMP_ARCH_LOONGARCH64 entry that never gets used. I haven't run this on loong64 hardware, so the runtime impact is inferred from reading the code.

Suggested fix: rename the two nativeToSeccomp keys to loongarch64 and mipsel, and add a test that every goToNative value has a nativeToSeccomp entry.

Dominant language
Go
Stars
13
Forks
17
Avg merge
3d 9h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moby/profiles

All issues in moby/profiles

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.