diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-04-20 18:10:56 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-04-20 18:11:30 +0200 |
| commit | 9779459d2d4928a0f324d714b8d9fc5ec743caac (patch) | |
| tree | 31ac998c7b5a313aa77ced1314ca04cb226e8af5 /sys/socket.txt | |
| parent | 3e9ca9af331c24d56d701c749d25452d2a68e943 (diff) | |
sys: make ifindex a resource
Also split ioctl$sock_inet_ifreq into multple ioctls to make it possible
to disable or enable particular ones.
Diffstat (limited to 'sys/socket.txt')
| -rw-r--r-- | sys/socket.txt | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/socket.txt b/sys/socket.txt index 13002b6b6..2f81e4cf9 100644 --- a/sys/socket.txt +++ b/sys/socket.txt @@ -230,6 +230,8 @@ ifreq_ioctls = SIOCGIFNAME, SIOCSIFLINK, SIOCGIFFLAGS, SIOCSIFFLAGS, SIOCGIFADDR ioctl$sock_ifreq(fd sock, cmd flags[ifreq_ioctls], arg ptr[inout, ifreq]) +ioctl$sock_SIOCGIFINDEX(fd sock, cmd const[SIOCGIFINDEX], arg ptr[inout, ifreq_SIOCGIFINDEX]) + ioctl$sock_SIOCGIFBR(fd sock, cmd const[SIOCGIFBR], arg ptr[inout, brctl_arg]) ioctl$sock_SIOCSIFBR(fd sock, cmd const[SIOCGIFBR], arg ptr[inout, brctl_arg]) @@ -258,6 +260,14 @@ ioctl$sock_SIOCSPGRP(fd sock, cmd const[SIOCSPGRP], arg ptr[in, pid]) ioctl$sock_FIOGETOWN(fd sock, cmd const[FIOGETOWN], arg ptr[out, pid]) ioctl$sock_SIOCGPGRP(fd sock, cmd const[SIOCGPGRP], arg ptr[out, pid]) +resource ifindex[int32] + +ifreq_SIOCGIFINDEX { + ifr_ifrn devname + ifr_ifru ifindex + pad array[const[0, int8], 20] +} [packed] + ifreq { ifr_ifrn devname ifr_ifru ifr_ifru @@ -271,10 +281,13 @@ syzn_devname { 0 const[0, int8] } +# We could add "eth0" to this list as well, but this will affect the connection between fuzzer and manager and produce lots of "no output" crashes. +devnames = "lo", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "sit0", "ip6tnl0", "ip6gre0", "bond0", "dummy0", "eql", "ifb0", "ipddp0", "yam0", "bcsf0", "bcsh0", "teql0", "nr0", "rose0", "irlan0", "bpq0" + devname [ generic array[int8, IFNAMSIZ] - loopback string["lo", IFNAMSIZ] - ethernet syzn_devname + common string[devnames, IFNAMSIZ] + syzn syzn_devname ] ifr_ifru [ |
