aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_can_arm64.const
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-05 12:07:59 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-05 12:10:27 +0100
commit42467f5b7bf4eef20f78f796fc6eb10401784d86 (patch)
tree6dd3caddad413b777f407abdcd1969b15cb40a84 /sys/linux/socket_can_arm64.const
parente91c118db99874bef7e2cd657505aa4bafbbb6fa (diff)
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.
Diffstat (limited to 'sys/linux/socket_can_arm64.const')
-rw-r--r--sys/linux/socket_can_arm64.const2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/linux/socket_can_arm64.const b/sys/linux/socket_can_arm64.const
index 412c466f6..acf87acb6 100644
--- a/sys/linux/socket_can_arm64.const
+++ b/sys/linux/socket_can_arm64.const
@@ -7,8 +7,6 @@ CAN_BCM = 2
CAN_FD_FRAME = 2048
CAN_MAX_DLEN = 8
CAN_RAW = 1
-IFNAMSIZ = 16
-# IFREQ_SIZE is not set
RX_ANNOUNCE_RESUME = 256
RX_CHECK_DLC = 64
RX_DELETE = 6