From b17c5726f6dc911ac0d4c9be02c2a0d9a7dee393 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 28 Dec 2015 19:11:03 +0100 Subject: sys: support for AF_UNIX sockets --- executor/syscalls.h | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/syscalls.h b/executor/syscalls.h index 8b20db40f..a122f46c2 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -346,9 +346,9 @@ call_t syscalls[] = { {"getpeername", 52}, {"getsockopt", 55}, {"setsockopt", 54}, + {"setsockopt$sock_void", 54}, {"getsockopt$sock_int", 55}, {"setsockopt$sock_int", 54}, - {"getsockopt$sock_str", 55}, {"setsockopt$sock_str", 54}, {"getsockopt$sock_linger", 55}, {"setsockopt$sock_linger", 54}, @@ -357,6 +357,10 @@ call_t syscalls[] = { {"getsockopt$sock_timeval", 55}, {"setsockopt$sock_timeval", 54}, {"setsockopt$sock_attach_bpf", 54}, + {"setsockopt$SO_TIMESTAMPING", 54}, + {"getsockopt$SO_TIMESTAMPING", 55}, + {"setsockopt$SO_ATTACH_FILTER", 54}, + {"getsockopt$sock_buf", 55}, {"getsockopt$tcp_int", 55}, {"setsockopt$tcp_int", 54}, {"getsockopt$tcp_buf", 55}, @@ -389,6 +393,22 @@ call_t syscalls[] = { {"setsockopt$ipv6_mtu", 54}, {"getsockopt$ipv6_opts", 55}, {"setsockopt$ipv6_opts", 54}, + {"socket$unix", 41}, + {"socketpair$unix", 53}, + {"bind$unix", 49}, + {"connect$unix", 42}, + {"accept$unix", 43}, + {"accept4$unix", 288}, + {"ioctl$SIOCOUTQ", 16}, + {"ioctl$SIOCINQ", 16}, + {"sendto$unix", 44}, + {"sendmsg$unix", 46}, + {"sendmmsg$unix", 307}, + {"recvfrom$unix", 45}, + {"recvmsg$unix", 47}, + {"recvmmsg$unix", 299}, + {"getsockname$unix", 51}, + {"getpeername$unix", 52}, {"socket$alg", 41}, {"bind$alg", 49}, {"setsockopt$ALG_SET_KEY", 54}, @@ -989,9 +1009,9 @@ call_t syscalls[] = { {"getpeername", 205}, {"getsockopt", 209}, {"setsockopt", 208}, + {"setsockopt$sock_void", 208}, {"getsockopt$sock_int", 209}, {"setsockopt$sock_int", 208}, - {"getsockopt$sock_str", 209}, {"setsockopt$sock_str", 208}, {"getsockopt$sock_linger", 209}, {"setsockopt$sock_linger", 208}, @@ -1000,6 +1020,10 @@ call_t syscalls[] = { {"getsockopt$sock_timeval", 209}, {"setsockopt$sock_timeval", 208}, {"setsockopt$sock_attach_bpf", 208}, + {"setsockopt$SO_TIMESTAMPING", 208}, + {"getsockopt$SO_TIMESTAMPING", 209}, + {"setsockopt$SO_ATTACH_FILTER", 208}, + {"getsockopt$sock_buf", 209}, {"getsockopt$tcp_int", 209}, {"setsockopt$tcp_int", 208}, {"getsockopt$tcp_buf", 209}, @@ -1032,6 +1056,22 @@ call_t syscalls[] = { {"setsockopt$ipv6_mtu", 208}, {"getsockopt$ipv6_opts", 209}, {"setsockopt$ipv6_opts", 208}, + {"socket$unix", 198}, + {"socketpair$unix", 199}, + {"bind$unix", 200}, + {"connect$unix", 203}, + {"accept$unix", 202}, + {"accept4$unix", 242}, + {"ioctl$SIOCOUTQ", 29}, + {"ioctl$SIOCINQ", 29}, + {"sendto$unix", 206}, + {"sendmsg$unix", 211}, + {"sendmmsg$unix", 269}, + {"recvfrom$unix", 207}, + {"recvmsg$unix", 212}, + {"recvmmsg$unix", 243}, + {"getsockname$unix", 204}, + {"getpeername$unix", 205}, {"socket$alg", 198}, {"bind$alg", 200}, {"setsockopt$ALG_SET_KEY", 208}, -- cgit mrf-deployment