Commit Graph

29 Commits

Author SHA1 Message Date
riastradh 8603ff52c2 Clarify wording further based on private feedback. 2021-04-06 22:02:40 +00:00
riastradh cfdaa93ec8 Clarify security model of rndctl -S files. 2021-04-06 12:32:39 +00:00
nia a712f2f75f rndctl.8: reflect current reality 2021-04-02 07:04:05 +00:00
riastradh 97603a72a0 Touch up rndctl(8) a bit. 2020-05-07 19:09:26 +00:00
wiz fecac516fe Add -i to SYNOPSIS. 2020-05-07 12:58:09 +00:00
riastradh 1e65f60a58 Tweak logic to decide whether a medium is safe for an rndseed.
- Teach rndctl to load the seed, but treat it as zero entropy, if the
  medium is read-only or if the update fails.

- Teach rndctl to accept `-i' flag instructing it to ignore the
  entropy estimate in the seed.

- Teach /etc/rc.d/random_seed to:
  (a) assume nonlocal file systems are unsafe, and use -i, but
  (b) assume / is safe, even if it is nonlocal.
  If the medium is nonwritable, leave it to rndctl to detect that.
  (Could use statvfs and check for ST_LOCAL in rndctl, I guess, but I
  already implemented it this way.)

Treating nonlocal / as safe is a compromise: it's up to the operator
to secure the network for (e.g.) nfs mounts, but that's true whether
we're talking entropy or not -- if the adversary has access to the
network that you've mounted / from, they can do a lot more damage
anyway; this reduces warning fatigue for diskless systems, e.g. test
racks.
2020-05-06 18:49:26 +00:00
riastradh 5af49f98fe Teach `rndctl -L' to update the seed file, not just delete it.
The seed file is updated by entering the old seed into the system and
then hashing the old seed together with data from /dev/urandom, and
writing it atomically with write-to-temporary/rename-to-permanent.

This way, interruption by crash or power loss does not obliterate
your persistent entropy (unless it causes file system corruption).
2019-12-06 14:43:18 +00:00
wiz 233b62b2e9 Sort options and mark them as optional.
Bump date for previous.
2014-08-10 17:13:02 +00:00
tls ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
wiz 69d02ecf2f Sort option descriptions, bump date for previous. 2011-11-23 12:15:30 +00:00
tls 4924aa205a Load entropy at system boot (only works at securelevel < 1); save
at system shutdown.  Disable with random_seed=NO in rc.conf if desired.

Goes to some trouble to never load or save to network filesystems.

Entropy should really be loaded by the boot loader but I am still
sorting out how to pass it to the kernel.
2011-11-23 10:47:48 +00:00
pgoyette 0b5ef36c08 Fix typo 2011-10-01 02:55:00 +00:00
apb cf9d39220a Add a list of device types for use with "rndctl -t ${typename}". 2009-01-04 12:01:43 +00:00
apb 046bb95d46 Adjust synopsis and description to make it clear that -d devname and
-t devtype are mutually exclusive.
2008-11-06 15:58:16 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 09cbac4e7f New sentence, new line. From Robert Elz. 2002-10-03 15:41:44 +00:00
wiz 90158afe92 Sort options. Fix grammar. Use more mdoc. 2002-10-01 14:39:51 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
wiz e8e51dce31 Sort sections, use standard headers, sort SEE ALSO. 2001-11-16 12:08:19 +00:00
wiz 4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
wiz 73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
enami 9b6f3e1ce2 Don't explain -s twice. 2000-10-05 03:24:41 +00:00
joda 6532bb554c document -s 2000-08-28 13:27:37 +00:00
sommerfeld e62920cf2e revised rndctl which can display pool statistics. 2000-06-20 02:40:10 +00:00
erh fa45851f9b Add missing .El line. 1999-03-10 05:14:51 +00:00
msaitoh f8c66df30b sort entries and delete extra periods in SEE also section. 1998-05-22 18:27:50 +00:00
explorer 538f5cb890 Update copyright message (I wrote this, not the template of the day) 1997-11-04 05:47:24 +00:00
enami 0d4522a03f Fix .Nm usage. 1997-10-20 09:11:16 +00:00
explorer 9a1e5bf2d3 Add rndctl(8) and man page 1997-10-13 03:58:05 +00:00