From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23605: /dev/urandom not seeded across reboots Date: Wed, 25 May 2016 23:53:33 +0200 Message-ID: <87a8jd9542.fsf@gnu.org> References: <20160523175832.GA10646@jasmine> <87shx8j5qm.fsf@T420.taylan> <20160524161617.GC29516@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5gke-0000FP-3R for bug-guix@gnu.org; Wed, 25 May 2016 17:54:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5gkc-0001ng-70 for bug-guix@gnu.org; Wed, 25 May 2016 17:54:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5gkc-0001nc-3l for bug-guix@gnu.org; Wed, 25 May 2016 17:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b5gkb-0003WV-Sy for bug-guix@gnu.org; Wed, 25 May 2016 17:54:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (David Thompson's message of "Tue, 24 May 2016 12:26:29 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "Thompson, David" Cc: 23605@debbugs.gnu.org "Thompson, David" skribis: > On Tue, May 24, 2016 at 12:16 PM, Leo Famulari wrote: [...] >> When I boot a GuixSD VM for the first time [0], it requires me to dance >> on the keyboard until it has collected ~200 bits of entropy. I assumed >> this is to properly bootstrap the CSPRNG in /dev/urandom, but I'm not >> sure. > > This is just an annoying feature of GNU lsh. I want to switch my > machines to OpenSSH sometime, partly due to this. It=E2=80=99s actually =E2=80=98lsh-make-seed=E2=80=99 that does that (info = "(lsh) lsh-make-seed"), and it=E2=80=99s invoked from our =E2=80=98lsh-service=E2= =80=99 when #:initialize? is #t (the default). It=E2=80=99s possible to set #:initialize? to #f, but then you still need to create (or provide) the random seed at some point. At the time people felt that having it default to #t would be less surprising. > It impedes automated provisioning of servers, which OpenSSH does not do. Maybe OpenSSH assumes that the kernel-provided randomness is good enough? Ludo=E2=80=99.