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_nfc_ppc64le.const | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/linux/socket_nfc_ppc64le.const') diff --git a/sys/linux/socket_nfc_ppc64le.const b/sys/linux/socket_nfc_ppc64le.const index bf52bbad2..e50fc54ee 100644 --- a/sys/linux/socket_nfc_ppc64le.const +++ b/sys/linux/socket_nfc_ppc64le.const @@ -1,5 +1,6 @@ # AUTOGENERATED FILE AF_NFC = 39 +NFC_LLCP_MAX_SERVICE_NAME = 63 NFC_LLCP_MIUX = 1 NFC_LLCP_REMOTE_LTO = 3 NFC_LLCP_REMOTE_MIU = 2 @@ -26,4 +27,3 @@ __NR_getsockopt = 340 __NR_sendmmsg = 349 __NR_sendmsg = 341 __NR_setsockopt = 339 -__NR_socket = 326 -- cgit mrf-deployment