Skip to content

seccomp: fix nativeToSeccomp keys for loong64 and mipsle - #53

Merged
thaJeztah merged 1 commit into
moby:mainfrom
ricardobranco777:seccomp-fix-native-arch-keys
Oct 12, 2026
Merged

thaJeztah merged 1 commit into
moby:mainfrom
ricardobranco777:seccomp-fix-native-arch-keys

Conversation

@ricardobranco777

Copy link
Copy Markdown
Contributor

setupSeccomp looks up goToNative[runtime.GOARCH] in nativeToSeccomp to pick the archMap entry. For loong64 and mipsle the goToNative values ("loongarch64", "mipsel") had no matching nativeToSeccomp key ("loong64", "mipsle"), so the lookup failed and Architectures was not populated on those platforms.

Rename the two nativeToSeccomp keys to match, and add a test that every goToNative value has a nativeToSeccomp entry.

Fixes #52

setupSeccomp looks up goToNative[runtime.GOARCH] in nativeToSeccomp
to pick the archMap entry. For loong64 and mipsle the goToNative
values ("loongarch64", "mipsel") had no matching nativeToSeccomp key
("loong64", "mipsle"), so the lookup failed and Architectures was
not populated on those platforms.

Rename the two nativeToSeccomp keys to match, and add a test that
every goToNative value has a nativeToSeccomp entry.

Fixes moby#52

Signed-off-by: Ricardo Branco <rbranco@suse.de>
@thaJeztah

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

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 4b8214f into moby:main Oct 12, 2026
10 checks passed
@ricardobranco777
ricardobranco777 deleted the seccomp-fix-native-arch-keys branch October 12, 2026 13:21
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.

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

2 participants