Internal change.

PiperOrigin-RevId: 670667358
This commit is contained in:
Lucas Manning
2024-09-03 12:48:06 -07:00
committed by gVisor bot
parent 341a018fd3
commit 974e6dac72
2 changed files with 7 additions and 1 deletions
@@ -104,6 +104,10 @@ func Filters() seccomp.SyscallRules {
seccomp.NonNegativeFD{},
seccomp.EqualTo(linux.VFIO_SET_IOMMU),
},
seccomp.PerArg{
seccomp.NonNegativeFD{},
seccomp.EqualTo(linux.VFIO_DEVICE_RESET),
},
seccomp.PerArg{
seccomp.NonNegativeFD{},
seccomp.EqualTo(gasket.GASKET_IOCTL_RESET),
+3 -1
View File
@@ -71,7 +71,9 @@ func sysDevicesPCIPaths(sysDevicesPath string) ([]string, error) {
return nil, err
}
for _, pciDent := range pciDents {
pciPaths = append(pciPaths, path.Join(sysDevicesPath, dent, pciDent))
if pciDeviceRegex.MatchString(pciDent) {
pciPaths = append(pciPaths, path.Join(sysDevicesPath, dent, pciDent))
}
}
}
}