mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
build: Without getrandom() require gnutls 3.7.2
gnutls before 3.7.2 and without getrandom() will open /dev/urandom at library initialization time before main() is run. We use closefrom(3) in samba-bgqd and samba-dcerpd, which closes /dev/urandom, which then breaks gnutls. On system with getrandom(), no file descriptor is opened and gnutls 3.7.2+ will open and close /dev/urandom whenever it needs to access it. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jan 21 21:42:08 UTC 2022 on sn-devel-184
This commit is contained in:
parent
d0aa04e8c1
commit
82a21581c6
@ -6,6 +6,10 @@ def parse_version(v):
|
||||
|
||||
gnutls_min_required_version = "3.4.7"
|
||||
|
||||
conf.CHECK_FUNCS('getrandom', headers='sys/random.h')
|
||||
if not conf.CONFIG_SET('HAVE_GETRANDOM'):
|
||||
gnutls_min_required_version = "3.7.2"
|
||||
|
||||
gnutls_required_version = gnutls_min_required_version
|
||||
|
||||
conf.CHECK_CFG(package='gnutls',
|
||||
|
Loading…
Reference in New Issue
Block a user