mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
Linux: Create Netlink socket with SOCK_CLOEXEC in __check_pf [BZ #15722]
This commit is contained in:
parent
809dc95d14
commit
3fe8fc793f
@ -1,3 +1,9 @@
|
||||
2018-06-18 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
[BZ #15722]
|
||||
* sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
|
||||
socket with SOCK_CLOEXEC.
|
||||
|
||||
2018-06-18 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
[BZ #23303]
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user