Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/sbin/rndctl



Module Name:    src
Committed By:   martin
Date:           Tue Dec 17 12:45:30 UTC 2019

Modified Files:
        src/sbin/rndctl [netbsd-9]: Makefile rndctl.8 rndctl.c
Added Files:
        src/sbin/rndctl [netbsd-9]: namespace.h

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #563):

        sbin/rndctl/rndctl.c: revision 1.31
        sbin/rndctl/rndctl.8: revision 1.23
        sbin/rndctl/Makefile: revision 1.4 (adapted)
        sbin/rndctl/namespace.h: revision 1.1

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).


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.114.1 src/sbin/rndctl/Makefile
cvs rdiff -u -r0 -r1.1.2.2 src/sbin/rndctl/namespace.h
cvs rdiff -u -r1.22 -r1.22.26.1 src/sbin/rndctl/rndctl.8
cvs rdiff -u -r1.30 -r1.30.18.1 src/sbin/rndctl/rndctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index