the rndlinux module opens a file handle and never closes it

Max Kellermann max at duempel.org
Mon Dec 18 14:20:23 CET 2006


Package: libgcrypt11
Version: 1.2.3-2
Tags: patch

The function _gcry_rndlinux_gather_random() in cipher/rndlinux.c opens
two file handles (fd_random and fd_urandom) which are never closed.
Since it does not apply the FD_CLOEXEC flag, all subprocesses will
inherit these two handles without ever using them.

Please apply this patch which sets the FD_CLOEXEC flag.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rndlinux_cloexec.patch
Type: text/x-diff
Size: 457 bytes
Desc: not available
Url : /pipermail/attachments/20061218/8c4ad2e2/attachment.bin 


More information about the Gcrypt-devel mailing list