mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-01 20:02:29 +00:00
util-linux: Use SYS_getrandom in randutils.c
The getrandom syscall is not hanging at bootup any more if there is not enough entropy. This was fixed upstream in 2018 in commit:a9cf659e05
This OpenWrt patch is not needed any more. This reverts commite64463ebde
("util-linux: avoid using the getrandom syscall") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
2f11a89140
commit
3a935f7ea9
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=util-linux
|
||||
PKG_VERSION:=2.39
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.39
|
||||
|
@ -1,14 +0,0 @@
|
||||
--- a/lib/randutils.c
|
||||
+++ b/lib/randutils.c
|
||||
@@ -26,6 +26,11 @@
|
||||
#define THREAD_LOCAL static
|
||||
#endif
|
||||
|
||||
+/* force /dev/urandom to avoid hanging on early boot */
|
||||
+#undef HAVE_GETRANDOM
|
||||
+#undef SYS_getrandom
|
||||
+#undef __NR_getrandom
|
||||
+
|
||||
#ifdef HAVE_GETRANDOM
|
||||
# include <sys/random.h>
|
||||
#elif defined (__linux__)
|
Loading…
Reference in New Issue
Block a user