diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:07:59 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-05 12:10:27 +0100 |
| commit | 42467f5b7bf4eef20f78f796fc6eb10401784d86 (patch) | |
| tree | 6dd3caddad413b777f407abdcd1969b15cb40a84 /sys/linux/socket_can_386.const | |
| parent | e91c118db99874bef7e2cd657505aa4bafbbb6fa (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_386.const')
| -rw-r--r-- | sys/linux/socket_can_386.const | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/linux/socket_can_386.const b/sys/linux/socket_can_386.const index 2097ae71a..6a08df957 100644 --- a/sys/linux/socket_can_386.const +++ b/sys/linux/socket_can_386.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 |
