1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Linux: Create Netlink socket with SOCK_CLOEXEC in __check_pf [BZ #15722]

This commit is contained in:
Florian Weimer
2018-06-18 13:08:08 +02:00
parent 809dc95d14
commit 3fe8fc793f
2 changed files with 7 additions and 1 deletions

View File

@ -313,7 +313,7 @@ __check_pf (bool *seen_ipv4, bool *seen_ipv6,
}
else
{
int fd = __socket (PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
int fd = __socket (PF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE);
if (__glibc_likely (fd >= 0))
{