Make KVM ioctl(2) seccomp filter use non-negative FD as arg[0] on ARM.

We have a test that enforces this now, and it fails on ARM due to this.

PiperOrigin-RevId: 609811953
This commit is contained in:
Etienne Perot
2024-02-23 12:54:29 -08:00
committed by gVisor bot
parent 2759f79fce
commit 2fe5ad76cd
+1 -1
View File
@@ -28,7 +28,7 @@ import (
func (*KVM) archSyscallFilters() seccomp.SyscallRules {
return seccomp.MakeSyscallRules(map[uintptr]seccomp.SyscallRule{
unix.SYS_IOCTL: seccomp.PerArg{
seccomp.AnyValue{},
seccomp.NonNegativeFD{},
seccomp.EqualTo(KVM_SET_VCPU_EVENTS),
},
})