crypto: Use O_CLOEXEC in qcrypto_random_init
commite9979ca64e5e4a150f5346de3982f02f54c41076
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 Mar 2019 04:05:54 +0000 (13 21:05 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 22 May 2019 16:38:54 +0000 (22 12:38 -0400)
tree805b55dc96771648f51a8a2a3782fa9abf8e994c
parent25fb26e4f4b7cd50b9a7314400a2f800a4082b71
crypto: Use O_CLOEXEC in qcrypto_random_init

Avoids leaking the /dev/urandom fd into any child processes.

Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
crypto/random-platform.c