Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760098AbaGYNWa (ORCPT ); Fri, 25 Jul 2014 09:22:30 -0400 Received: from imap.thunk.org ([74.207.234.97]:56408 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbaGYNW2 (ORCPT ); Fri, 25 Jul 2014 09:22:28 -0400 Date: Fri, 25 Jul 2014 09:22:25 -0400 From: "Theodore Ts'o" To: Andy Lutomirski Cc: Henrique de Moraes Holschuh , Linux Kernel Developers List , Linux API , linux-crypto@vger.kernel.org Subject: Re: [PATCH -v5] random: introduce getrandom(2) system call Message-ID: <20140725132225.GQ1865@thunk.org> Mail-Followup-To: Theodore Ts'o , Andy Lutomirski , Henrique de Moraes Holschuh , Linux Kernel Developers List , Linux API , linux-crypto@vger.kernel.org References: <1406212287-9855-1-git-send-email-tytso@mit.edu> <20140724151814.GE32421@khazad-dum.debian.net> <20140724190206.GL6673@thunk.org> <20140724203019.GA20737@khazad-dum.debian.net> <20140724232434.GN6673@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 24, 2014 at 04:27:36PM -0700, Andy Lutomirski wrote: > > I think that people might do: > > try getrandom(GRND_RANDOM) > fall back to /dev/random > fall back to something intensely stupid > > We want them to at least attempt the fallback from GRND_RANDOM to !GRND_RANDOM. We can't legislate against stupidity. Seriously, the best way to do this is to write a good userspace library and encourage application writers to use it. Regards, - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/