This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.27.9000-483-g3fe8fc7


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7 (commit)
      from  809dc95d14b7c0245c9ec102c51fd72c42108973 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7

commit 3fe8fc793f2e98c28c07428fabdeaf2f3c3480c7
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Jun 18 13:08:08 2018 +0200

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

diff --git a/ChangeLog b/ChangeLog
index 3cf5985..2f71706 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c
index 36326ab..04cd104 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))
 	{

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                          |    6 ++++++
 sysdeps/unix/sysv/linux/check_pf.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]