diff options
| author | Albert van der Linde <alinde@google.com> | 2020-07-16 07:04:53 +0000 |
|---|---|---|
| committer | Alexander Potapenko <ramosian.glider@gmail.com> | 2020-07-20 11:30:15 +0200 |
| commit | d7a01d53f700f7e15d3691fc593938d2cbac541e (patch) | |
| tree | 1003782dba9a47198e43617a4921924837c07fc9 /pkg/host/syscalls_linux.go | |
| parent | 849706788683939cd3ace2c1537b33cc7dd38a36 (diff) | |
sys/linux: add descriptions for raw character devices
Diffstat (limited to 'pkg/host/syscalls_linux.go')
| -rw-r--r-- | pkg/host/syscalls_linux.go | 4 |
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)) } |
