openwrt/package/system
Jason A. Donenfeld 2edc017a6e urandom-seed: use seedrng for seeding the random number generator
The RNG can't actually be seeded from a shell script, due to the
reliance on ioctls. For this reason, the seedrng project provides a
basic script meant to be copy and pasted into projects like OpenWRT
and tweaked as needed: <https://git.zx2c4.com/seedrng/about/>.

This commit imports it into the urandom-seed package and wires up the
init scripts to call it. This also is a significant improvement over the
current init script, which does not robustly handle cleaning up of seeds
and syncing to prevent reuse. Additionally, the existing script creates
a new seed immediately after writing an old one, which means that the
amount of entropy might actually regress, due to failing to credit the
old seed.

Closes: https://github.com/openwrt/openwrt/issues/9570
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [fixed missing INSTALL_DIR]
2022-03-28 09:27:56 +02:00
..
ca-certificates ca-certificates: fix python3-cryptography woes in certdata2pem.py 2021-12-01 17:52:35 +01:00
fstools fstools: update to git HEAD 2021-11-20 21:09:59 +00:00
fwtool fwtool: update to latest Git head 2019-11-14 22:53:31 +01:00
gpio-cdev/nu801 gpio-cdev: move kmod-leds-uleds dependency to MX100 2022-03-27 15:39:27 +02:00
iucode-tool iucode-tool: fix host-compile on macos and non-x86 linux 2022-02-26 19:52:41 +01:00
mtd mtd: fix imagetag compilation 2021-03-17 08:42:05 +01:00
openwrt-keyring openwrt-keyring: add OpenWrt 22.03 GPG/usign keys 2022-03-25 14:28:00 +01:00
opkg opkg: update to git HEAD of 2022-01-09 2022-01-09 20:10:32 +00:00
procd procd: move service command to procd 2022-03-19 16:13:58 +01:00
refpolicy Revert "refpolicy: add variant that builds modular policy" 2020-11-22 15:20:35 +00:00
rpcd rpcd: update to latest Git HEAD 2022-02-07 11:44:37 +01:00
selinux-policy selinux-policy: update to version 1.0 2021-10-28 22:15:02 +01:00
ubox ubox: fix broken deferred start of logfile writer 2022-01-31 15:03:25 +00:00
ubus ubus: bump to git HEAD 2022-02-28 16:18:37 +02:00
ucert ucert: update to latest git HEAD 2020-05-24 17:01:36 +02:00
uci uci: update to git HEAD 2021-10-22 23:51:51 +02:00
urandom-seed urandom-seed: use seedrng for seeding the random number generator 2022-03-28 09:27:56 +02:00
urngd treewide: remove BUILD_PARALLEL from CMake packages 2021-06-19 20:44:59 -10:00
usign usign: update to latest git HEAD 2020-05-23 13:38:12 +02:00
zram-swap zram-swap: clean up the log messages 2021-06-27 14:49:14 -10:00