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:
parent
bfa14406d6
commit
3fd3612e4c
@ -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) && \
|
||||
|
Loading…
Reference in New Issue
Block a user