syzkaller/sys/linux/socket_llc_386.const
Dmitry Vyukov 42467f5b7b sys/linux: add syz_init_net_socket syscall
The new pseudo syscall allows opening sockets that can only
be created in init net namespace (BLUETOOTH, NFC, LLC).
Use it to open these sockets.

Unfortunately this only works with sandbox none at the moment.
The problem is that setns of a network namespace requires CAP_SYS_ADMIN
in the target namespace, and we've lost all privs in the init namespace
during creation of a user namespace.
2018-03-05 12:10:27 +01:00

25 lines
475 B
Plaintext

# AUTOGENERATED FILE
AF_LLC = 26
LLC_OPT_ACK_TMR_EXP = 3
LLC_OPT_BUSY_TMR_EXP = 6
LLC_OPT_PKTINFO = 9
LLC_OPT_P_TMR_EXP = 4
LLC_OPT_REJ_TMR_EXP = 5
LLC_OPT_RETRY = 1
LLC_OPT_RX_WIN = 8
LLC_OPT_SIZE = 2
LLC_OPT_TX_WIN = 7
# SOCKADDR_SIZE is not set
SOCK_DGRAM = 2
SOCK_STREAM = 1
SOL_LLC = 268
__NR_accept4 = 364
__NR_bind = 361
__NR_connect = 362
__NR_getpeername = 368
__NR_getsockname = 367
__NR_getsockopt = 365
__NR_recvfrom = 371
__NR_sendto = 369
__NR_setsockopt = 366