aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/syscalls_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host/syscalls_linux.go')
-rw-r--r--pkg/host/syscalls_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/host/syscalls_linux.go b/pkg/host/syscalls_linux.go
index 18dc81d9e..7312fb8a7 100644
--- a/pkg/host/syscalls_linux.go
+++ b/pkg/host/syscalls_linux.go
@@ -235,6 +235,10 @@ func isSupportedSyzOpenDev(sandbox string, c *prog.Syscall) (bool, string) {
if !ok {
panic("first open arg is not a pointer to string const")
}
+ if strings.Contains(fname, "/dev/raw/raw#") {
+ // For syz_open_dev$char_raw, these files don't exist initially.
+ return true, ""
+ }
if !strings.Contains(fname, "#") {
panic(fmt.Sprintf("%v does not contain # in the file name (should be openat)", c.Name))
}