Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 670667358
  • Loading branch information
manninglucas authored and gvisor-bot committed Sep 3, 2024
1 parent 341a018 commit 974e6da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkg/sentry/devices/tpuproxy/seccomp_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 3 additions & 1 deletion pkg/sentry/fsimpl/sys/pci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
}
}
Expand Down

0 comments on commit 974e6da

Please sign in to comment.