]> Savannah Git Hosting - gnulib.git/commit
af_alg: don’t leak file descriptors into children
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 May 2018 18:34:28 +0000 (11:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 May 2018 18:34:46 +0000 (11:34 -0700)
commit842c754d2bb21b0dbb9bd2ad5fd87d94a81b2aeb
tree94b733665e7abce7178278d53aacb451c7f6c50b
parent9d991bcb7f87358ea86714530c460eb7c36ca74f
af_alg: don’t leak file descriptors into children

* lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
This code should be compiled only on recent GNU/Linux platforms
so we shouldn’t have to also depend on the accept4 module.
ChangeLog
lib/af_alg.c