]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
random(4): Match enabled sources mask to build options
authorConrad Meyer <cem@FreeBSD.org>
Sat, 27 Oct 2018 15:09:35 +0000 (15:09 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Sat, 27 Oct 2018 15:09:35 +0000 (15:09 +0000)
commit37136b849f71d99bc28b5c04d21794b3291936f1
treeedd94d329930b1eb186d69c3c5b40fb1521c66b5
parent59c38254d706034e44eb2d32874fe9b94778e912
random(4): Match enabled sources mask to build options

r287023 and r334450 added build option mechanisms to permanently disable
spammy and/or low quality entropy sources.

Follow-up those changes by updating the 'enabled' sources mask to match.
When sources are compile-time disabled, represent them as disabled in the
source mask, and prevent users from modifying that, like pure sources.
(Modifying the mask bit would have no effect, but users might think it did
if it was not prevented.)

Mostly a cosmetic change.

Reviewed by: markm
Approved by: secteam (gordon)
X-MFC-With: 334450
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D17252
sys/dev/random/random_harvestq.c
sys/sys/random.h