From a366c623f17aef75f49abf48098fbde87a230ec8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 4 Aug 2022 13:11:07 -0600 Subject: [PATCH] Use our own arc4random() in preference to the glibc version. The glibc arc4random() may fail in chroot on older kernels and exit. --- configure | 4 ++++ configure.ac | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure b/configure index 276f7affd..a7244dfe7 100755 --- a/configure +++ b/configure @@ -17851,6 +17851,10 @@ fi # We use our own getentropy() by default on Linux. : ${ac_cv_func_getentropy='no'} + # The glibc arc4random() may fail in chroot on older kernels. + # We use our own arc4random() by default on Linux. + : ${ac_cv_func_arc4random='no'} + # The glibc closefrom() emulation may fail in chroot. # We use our own closefrom() by default on Linux. : ${ac_cv_func_closefrom='no'} diff --git a/configure.ac b/configure.ac index 1a67cea99..0fd9db0b3 100644 --- a/configure.ac +++ b/configure.ac @@ -2080,6 +2080,10 @@ case "$host" in # We use our own getentropy() by default on Linux. : ${ac_cv_func_getentropy='no'} + # The glibc arc4random() may fail in chroot on older kernels. + # We use our own arc4random() by default on Linux. + : ${ac_cv_func_arc4random='no'} + # The glibc closefrom() emulation may fail in chroot. # We use our own closefrom() by default on Linux. : ${ac_cv_func_closefrom='no'}