summaryrefslogtreecommitdiffstats
path: root/crypto/random-gcrypt.c
diff options
context:
space:
mode:
authorRichard Henderson2019-03-14 05:05:54 +0100
committerRichard Henderson2019-05-22 18:38:54 +0200
commite9979ca64e5e4a150f5346de3982f02f54c41076 (patch)
tree805b55dc96771648f51a8a2a3782fa9abf8e994c /crypto/random-gcrypt.c
parentcrypto: Do not fail for EINTR during qcrypto_random_bytes (diff)
downloadqemu-e9979ca64e5e4a150f5346de3982f02f54c41076.tar.gz
qemu-e9979ca64e5e4a150f5346de3982f02f54c41076.tar.xz
qemu-e9979ca64e5e4a150f5346de3982f02f54c41076.zip
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>
Diffstat (limited to 'crypto/random-gcrypt.c')
0 files changed, 0 insertions, 0 deletions