We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ceda5 commit 4b412b8Copy full SHA for 4b412b8
1 file changed
contrib/seccomp/seccomp_default.go
@@ -44,6 +44,9 @@ func arches() []specs.Arch {
44
return []specs.Arch{specs.ArchMIPSEL, specs.ArchMIPSEL64, specs.ArchMIPSEL64N32}
45
case "s390x":
46
return []specs.Arch{specs.ArchS390, specs.ArchS390X}
47
+ case "riscv64":
48
+ // ArchRISCV32 (SCMP_ARCH_RISCV32) does not exist
49
+ return []specs.Arch{specs.ArchRISCV64}
50
default:
51
return []specs.Arch{}
52
}
@@ -531,6 +534,14 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
531
534
Action: specs.ActAllow,
532
535
Args: []specs.LinuxSeccompArg{},
533
536
})
537
538
+ s.Syscalls = append(s.Syscalls, specs.LinuxSyscall{
539
+ Names: []string{
540
+ "riscv_flush_icache",
541
+ },
542
+ Action: specs.ActAllow,
543
+ Args: []specs.LinuxSeccompArg{},
544
+ })
545
546
547
admin := false
0 commit comments