diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-06-18 13:08:08 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-06-18 15:24:55 +0200 |
commit | 3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7 (patch) | |
tree | 400c9a73e235b55f3e21d6e0b9dd119eeabf1075 /sysdeps/unix | |
parent | 809dc95d14b7c0245c9ec102c51fd72c42108973 (diff) | |
download | glibc-3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7.tar.gz glibc-3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7.tar.xz glibc-3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7.zip |
Linux: Create Netlink socket with SOCK_CLOEXEC in __check_pf [BZ #15722]
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/check_pf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c index 36326abe80..04cd104aec 100644 --- a/sysdeps/unix/sysv/linux/check_pf.c +++ b/sysdeps/unix/sysv/linux/check_pf.c @@ -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)) { |