Hi Adrian,

On Sat, 08 Feb 2025 07:41:48 +0100 John Paul Adrian Glaubitz wrote:

> Hello Dandan,
>
> On Sat, 2025-02-08 at 11:25 +0800, zhangdandan wrote:
> > Please consider the patch I attached for runc.
>
> --- runc-1.1.15+ds1.orig/libcontainer/seccomp/config.go
> +++ runc-1.1.15+ds1/libcontainer/seccomp/config.go
> @@ -69,6 +69,7 @@ var archs = map[string]string{
> "SCMP_ARCH_RISCV64": "riscv64",
> "SCMP_ARCH_S390": "s390",
> "SCMP_ARCH_S390X": "s390x",
> + "SCMP_ARCH_LOONGARCH64": "loong64",
> }
>
> You are using the Debian architecture name here and not the GNU name which
> I don't think is correct. You should use the GNU architecture name which
> is "loongarch64".

Thanks for your reminder.
I looked up definitions of other architectures in libcontainer/seccomp/config.go, for examples,
```
var archs = map[string]string{
        "SCMP_ARCH_X86":         "x86",
        "SCMP_ARCH_X86_64":      "amd64",
......
        "SCMP_ARCH_AARCH64":     "arm64",
......
        "SCMP_ARCH_LOONGARCH64": "loong64",
```

Dandan

Reply via email to