Skip to content
Snippets Groups Projects

lighttpd: do not block on getrandom syscall

Merged Ghost User requested to merge lighttpd-getrandom-nonblock into test
  1. Jan 03, 2017
    • Jan Čermák's avatar
      lighttpd: do not block on getrandom syscall · fd61d836
      Jan Čermák authored
      Sometimes the nonblocking entropy pool is not initialized soon enough,
      causing the getrandom syscall to block even if it is using the urandom
      pool.
      
      The patch entirely disables using the methods using getrandom syscall.
      The code falls back to using /dev/urandom char device, which should have
      enough entropy (even though the kernel thinks otherwise) thanks to
      the urandom feeding from ATSHA204 in /etc/init.d/boot
      Unverified
      fd61d836