mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Internal change.
PiperOrigin-RevId: 670667358
This commit is contained in:
committed by
gVisor bot
parent
341a018fd3
commit
974e6dac72
@@ -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),
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user