From 42467f5b7bf4eef20f78f796fc6eb10401784d86 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 5 Mar 2018 12:07:59 +0100 Subject: 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. --- sys/linux/socket_llc_ppc64le.const | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'sys/linux/socket_llc_ppc64le.const') diff --git a/sys/linux/socket_llc_ppc64le.const b/sys/linux/socket_llc_ppc64le.const index 1c96ab7f1..06c13c9dd 100644 --- a/sys/linux/socket_llc_ppc64le.const +++ b/sys/linux/socket_llc_ppc64le.const @@ -1,30 +1,5 @@ # AUTOGENERATED FILE AF_LLC = 26 -ETH_P_802_2 = 4 -ETH_P_802_3 = 1 -ETH_P_ALL = 3 -ETH_P_ARCNET = 26 -ETH_P_AX25 = 2 -ETH_P_CAIF = 247 -ETH_P_CAN = 12 -ETH_P_CANFD = 13 -ETH_P_CONTROL = 22 -ETH_P_DDCMP = 6 -ETH_P_DSA = 27 -ETH_P_ECONET = 24 -ETH_P_HDLC = 25 -ETH_P_IEEE802154 = 246 -ETH_P_IRDA = 23 -ETH_P_LOCALTALK = 9 -ETH_P_MOBITEX = 21 -ETH_P_PHONET = 245 -ETH_P_PPPTALK = 16 -ETH_P_PPP_MP = 8 -ETH_P_SNAP = 5 -ETH_P_TRAILER = 28 -ETH_P_TR_802_2 = 17 -ETH_P_WAN_PPP = 7 -ETH_P_XDSA = 248 LLC_OPT_ACK_TMR_EXP = 3 LLC_OPT_BUSY_TMR_EXP = 6 LLC_OPT_PKTINFO = 9 @@ -38,7 +13,6 @@ LLC_OPT_TX_WIN = 7 SOCK_DGRAM = 2 SOCK_STREAM = 1 SOL_LLC = 268 -__NR_accept = 330 __NR_accept4 = 344 __NR_bind = 327 __NR_connect = 328 @@ -48,5 +22,3 @@ __NR_getsockopt = 340 __NR_recvfrom = 337 __NR_sendto = 335 __NR_setsockopt = 339 -__NR_socket = 326 -__NR_socketpair = 333 -- cgit mrf-deployment