diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2020-03-24 11:31:41 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-03-26 16:56:59 +0100 |
commit | 6d92e8e9833c594d33f5197293f38f7077117e31 (patch) | |
tree | 8bab6f1097353851f3870347afc63442be4cec31 /configure.ac | |
parent | 07ba6c0a40a7773fd3f63a13f6aeaa13876c9d19 (diff) |
_dbus_generate_random_bytes: use getrandom(2)
Use getrandom(2) and fall back to /dev/urandom if it is missing or if it
fails some any reason.
This solves problem where dbus-uuidgen is called from a chroot which
lacks /dev/urandom.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ec208bef..709a46b2 100644 --- a/configure.ac +++ b/configure.ac @@ -386,6 +386,7 @@ fpathconf getgrouplist getpeereid getpeerucred +getrandom getresuid getrlimit inotify_init1 @@ -421,6 +422,7 @@ locale.h signal.h stdint.h sys/prctl.h +sys/random.h sys/resource.h sys/syslimits.h sys/time.h |