net/netconfig: Enable SOCK_CLOEXEC for all ioctl sockets

`NET_SOCK_TYPE` is used for ioctl sockets only, they can set `O_CLOEXEC`
explicitly.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng 2023-10-27 16:50:19 +08:00 committed by Xiang Xiao
parent bfa14406d6
commit 3fd3612e4c

View File

@ -109,7 +109,7 @@
* socket for performing driver ioctls.
*/
#define NET_SOCK_TYPE SOCK_CTRL
#define NET_SOCK_TYPE (SOCK_CTRL | SOCK_CLOEXEC)
#if NET_SOCK_FAMILY == AF_INET
# if !defined(CONFIG_NET_UDP) && !defined(CONFIG_NET_TCP) && \