diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-11-29 11:05:08 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-11-29 11:05:08 +0100 |
| commit | 9d1895c1bdd16602dad6bdeb98c23b643cca4554 (patch) | |
| tree | 6f55aef4f244038879afba32d3869a271e72d9ad /executor/syscalls.h | |
| parent | 83ec77a110ff9c83a43824cb2aef207e5caddba0 (diff) | |
add support for bpf syscall
Diffstat (limited to 'executor/syscalls.h')
| -rw-r--r-- | executor/syscalls.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/executor/syscalls.h b/executor/syscalls.h index e77958674..5f2a08fc9 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -9,6 +9,9 @@ struct call_t { #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif +#ifndef __NR_bpf +#define __NR_bpf 321 +#endif #define __NR_syz_openpts 1000001 #define __NR_syz_dri_open 1000002 @@ -111,6 +114,7 @@ call_t syscalls[] = { {"setsockopt$sock_cred", __NR_setsockopt}, {"getsockopt$sock_timeval", __NR_getsockopt}, {"setsockopt$sock_timeval", __NR_setsockopt}, + {"setsockopt$sock_attach_bpf", __NR_setsockopt}, {"getsockopt$tcp_int", __NR_getsockopt}, {"setsockopt$tcp_int", __NR_setsockopt}, {"getsockopt$tcp_buf", __NR_getsockopt}, @@ -534,4 +538,14 @@ call_t syscalls[] = { {"write$fuse_notify_delete", __NR_write}, {"write$fuse_notify_store", __NR_write}, {"write$fuse_notify_retrieve", __NR_write}, + {"bpf$MAP_CREATE", __NR_bpf}, + {"bpf$MAP_LOOKUP_ELEM", __NR_bpf}, + {"bpf$MAP_UPDATE_ELEM", __NR_bpf}, + {"bpf$MAP_DELETE_ELEM", __NR_bpf}, + {"bpf$MAP_GET_NEXT_KEY", __NR_bpf}, + {"bpf$PROG_LOAD", __NR_bpf}, + {"bpf$OBJ_PIN_MAP", __NR_bpf}, + {"bpf$OBJ_PIN_PROG", __NR_bpf}, + {"bpf$OBJ_GET_MAP", __NR_bpf}, + {"bpf$OBJ_GET_PROG", __NR_bpf}, }; |
