Subject: CVS commit: pkgsrc/www/firefox
From: Nia Alarie
Date: 2020-06-23 19:38:50
Message id: 20200623173850.4A9C6FB28@cvs.NetBSD.org

Log Message:
firefox: Avoid reading from /dev/random on NetBSD

Motivation: This becomes a problem when a user is on a system without
HWRNG or a preexisting seed file (to increase the estimated entropy to
256 bits), where Firefox will hang forever on startup waiting for a
user to write to /dev/random. Since this was reported on port-arm@,
I decided to investigate this, and believe this is the only place
Firefox might end up reading from /dev/random.

Risk: Probably not much. For actual Transport Layer Security purposes,
Network Security Services reads directly from /dev/urandom. On systems
where Firefox is used, we can probably reasonably assume that enough
entropy has been generated from user input, on-board sensors, and network
devices to provide a state that is fairly difficult to predict, even if the
NetBSD kernel assigns no value to it (since in embedded environments
where the device's operator may be absent, such events can be manipulated
to theoretically produce a predictable state - although I don't think
this theoretical attack is necessarily something we should be concerned
with on low-end desktop systems). Other kernels do assign value to these
inputs, so have much lower criteria for unblocking.

Bump PKGREVISION

Files:
RevisionActionfile
1.434modifypkgsrc/www/firefox/Makefile
1.400modifypkgsrc/www/firefox/distinfo
1.1addpkgsrc/www/firefox/patches/patch-third__party_rust_getrandom_src_lib.rs