File descriptor may leak in all libnl versions if pthreads are used.

Thomas Graf tgraf at infradead.org
Wed Jun 15 11:39:31 EDT 2011


On Wed, Jun 15, 2011 at 09:12:22PM +0600, Марк Коренберг wrote:
> Yes, but note, that on old kernels, SOCK_CLOEXEC may be ignored, as
> was with O_CLOEXEC in open(). In that case, good libraries should use
> fcntl().
> I think that fcntl() will bloat your code, so your patch is sufficient.

I agree. libnl exposes the fd so applications caring about ancient
kernels and threading can take care of this themselves.

Fixed in ca0fc75580512ccb5931fe1e05092c6c52a4e99c



More information about the libnl mailing list